# ─── Base de datos ────────────────────────────────────────────────────────────
# DESARROLLO: PostgreSQL local (puerto 5432)
# PRODUCCIÓN: cambiar a las URLs de Supabase (ver abajo)
DATABASE_URL="postgresql://postgres:AltMati2308@localhost:5432/milogia_multilogia"
DIRECT_URL="postgresql://postgres:AltMati2308@localhost:5432/milogia_multilogia"

# Supabase (producción / Vercel):
# DATABASE_URL="postgresql://postgres.yrkctywdijcvchgvvmmb:AltMati2308@aws-0-sa-east-1.pooler.supabase.com:6543/postgres"
# DIRECT_URL="postgresql://postgres:AltMati2308@db.yrkctywdijcvchgvvmmb.supabase.co:5432/postgres"

# ─── Autenticación ────────────────────────────────────────────────────────────
# Secreto para firmar JWT (mínimo 32 caracteres aleatorios)
# Generar con: openssl rand -base64 48
JWT_SECRET="OZpGAg959t91ptO3+LBfvQPIIORjxkzBcl65I/Kn9h8ub5DS+1Yfzast5lT25Kp3"

# Duración de la sesión (en segundos). Por defecto 8 horas.
SESSION_TTL_SECONDS=28800

# ─── 2FA (TOTP) ───────────────────────────────────────────────────────────────
# Clave AES-256 para cifrar secretos TOTP en la BD (exactamente 32 bytes en hex)
# Generar con: openssl rand -hex 32
TOTP_ENCRYPTION_KEY="17e035a0168e9b458479241b16b2dc51955c3de4ae06222f1fc39668955a6ba0"

# ─── Aplicación ───────────────────────────────────────────────────────────────
NEXT_PUBLIC_APP_NAME="Milogia DOS"
# URL base en producción (sin barra final)
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# URL interna usada por el servidor (para links en emails)
APP_URL="http://localhost:3000"

NODE_ENV="development"

# ─── Email (SMTP) ─────────────────────────────────────────────────────────────
# Configurar con credenciales reales para envío de planchas de citación.
# Para Gmail: habilitar "Contraseñas de aplicación" o usar OAuth2.
SMTP_HOST="smtp.gmail.com"
SMTP_PORT="587"
SMTP_SECURE="false"
SMTP_USER="secretario182@gmail.com"
SMTP_PASS="rpmk ydfr dcqr inpb"
SMTP_FROM='"Milogia" <no-reply@milogia.org>'

CRON_SECRET="dev-cron-secret-local"
