feat: migración a PostgreSQL, tiempo real SSE, Dockerfile y compose para Coolify

This commit is contained in:
urieljareth
2026-08-13 15:01:58 -06:00
commit f7fded5a44
28 changed files with 7314 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Configuración del Servidor y Base de Datos PostgreSQL
PORT=3000
NODE_ENV=production
# Conexión PostgreSQL (Formato URL o componentes individuales)
DATABASE_URL=postgresql://postgres:postgres_password_e3@db:5432/encuesta_e3
# Variables alternativas de PostgreSQL
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_DB=encuesta_e3
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres_password_e3
DATABASE_SSL=false
# Clave secreta para funciones de administrador (Restablecer votos)
ADMIN_SECRET=RESETEOE3