38 lines
899 B
Bash
38 lines
899 B
Bash
# ============================================================
|
|
# AR-ProjectManagement — Variables de entorno
|
|
# Copiar como .env y completar los valores reales
|
|
# NUNCA commitear el archivo .env
|
|
# ============================================================
|
|
|
|
NODE_ENV=development
|
|
|
|
# PostgreSQL
|
|
DB_USER=ar_pm_user
|
|
DB_PASSWORD=CAMBIAR_ESTA_PASSWORD_SEGURA
|
|
DB_NAME=ar_pm_db
|
|
DB_PORT=5432
|
|
|
|
# JWT — Generar con: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
|
|
JWT_SECRET=GENERAR_SECRET_ALEATORIO_64_BYTES
|
|
JWT_REFRESH_SECRET=GENERAR_OTRO_SECRET_ALEATORIO_64_BYTES
|
|
JWT_ACCESS_EXPIRES=15m
|
|
JWT_REFRESH_EXPIRES=7d
|
|
|
|
# Puertos
|
|
BACKEND_PORT=4000
|
|
FRONTEND_PORT=3000
|
|
|
|
# URLs
|
|
FRONTEND_URL=http://localhost:3000
|
|
REACT_APP_API_URL=http://localhost:4000/api
|
|
|
|
# Seguridad
|
|
MAX_LOGIN_ATTEMPTS=5
|
|
LOCK_TIME_MINUTES=15
|
|
|
|
# Logs
|
|
LOG_LEVEL=debug
|
|
|
|
# IA
|
|
AI_ENCRYPTION_KEY=GENERAR_KEY_AES256_32_BYTES
|