File size: 2,218 Bytes
5f12c93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ─── 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