31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
# ─────────────────────────────────────────────
|
|
# apps/api — Variables de entorno
|
|
# Copia este archivo como .env y rellena los valores.
|
|
# NUNCA expongas estas variables al frontend.
|
|
# ─────────────────────────────────────────────
|
|
|
|
# Servidor
|
|
API_PORT=3001
|
|
NODE_ENV=development
|
|
|
|
# Supabase (self-hosted) — usar service_role key (bypasea RLS)
|
|
SUPABASE_URL=https://tu-supabase.tudominio.com
|
|
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
|
|
# Resend — servicio de email
|
|
# Crear cuenta en https://resend.com y configurar dominio
|
|
RESEND_API_KEY=re_...
|
|
EMAIL_FROM=Naturcalabacera <reservas@tudominio.com>
|
|
|
|
# Destinatarios de notificaciones (parametrizables, sin hardcodear)
|
|
NOTIFICATION_EMAIL_TENERIFFA=contacto-teneriffa@ejemplo.com
|
|
NOTIFICATION_EMAIL_NATUR=admin@naturcalabacera.com
|
|
NOTIFICATION_EMAIL_POOL_HEATING=jonathan@ejemplo.com # "Jonathan o las chicas"
|
|
|
|
# URL del frontend para CORS
|
|
WEB_ORIGIN=http://localhost:5173
|
|
|
|
# Jobs — runner de notificaciones
|
|
JOB_RUNNER_INTERVAL_MS=300000 # 5 minutos (300000ms)
|
|
JOB_MAX_RETRIES=3
|