# ─── Base de datos ───────────────────────────────────────────────────────── # Formato: postgresql://USUARIO:CONTRASEÑA@HOST:PUERTO/NOMBRE_BD DATABASE_URL=postgresql://admin:CAMBIAR_CONTRASENA@db:5432/internacion_db # Variables de PostgreSQL (usadas por el servicio 'db' en docker-compose) POSTGRES_DB=internacion_db POSTGRES_USER=admin POSTGRES_PASSWORD=CAMBIAR_CONTRASENA # ─── JWT ─────────────────────────────────────────────────────────────────── # Generar con: python -c "import secrets; print(secrets.token_hex(32))" JWT_SECRET=CAMBIAR_POR_SECRET_ALEATORIO_DE_64_CARACTERES JWT_ALGORITHM=HS256 JWT_EXPIRE_MINUTES=60 # ─── Entorno ─────────────────────────────────────────────────────────────── # Valores válidos: development | staging | production # En 'production', el endpoint /auth/token queda deshabilitado ENVIRONMENT=development # ─── CORS ────────────────────────────────────────────────────────────────── # Lista JSON de orígenes permitidos (nunca usar "*" con allow_credentials=true) ALLOWED_ORIGINS=["http://localhost:3000","http://localhost:5173"] # ─── Integraciones externas ──────────────────────────────────────────────── # Si true, las llamadas a M1/M2/M7/M9/M10 son mockeadas (útil para dev local) MOCK_EXTERNAL_SERVICES=true # HTTP timeout en segundos para llamadas a módulos externos HTTP_TIMEOUT_SECONDS=5.0 # URLs de los módulos del sistema (ajustar para cada entorno) M1_HCE_URL=http://modulo1:8001 M2_TURNOS_URL=http://modulo2:8002 M7_FACTURACION_URL=http://modulo7:8007 M9_MONITOREO_URL=http://modulo9:8009 M10_CORE_URL=http://modulo10:8010