-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (37 loc) · 1.37 KB
/
.env.example
File metadata and controls
47 lines (37 loc) · 1.37 KB
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
39
40
41
42
43
44
45
46
47
# ==============================================
# CONFIGURACIÓN DE VARIABLES DE ENTORNO
# Sistema de Gestión de Comedor Escolar
# ==============================================
# ===== CONFIGURACIÓN FLASK =====
# Clave secreta para las sesiones (CAMBIAR EN PRODUCCIÓN)
# Generar con: python -c "import secrets; print(secrets.token_hex(32))"
SESSION_SECRET=cambiar-esta-clave-secreta-en-produccion-por-una-aleatoria
# Entorno de Flask (development o production)
FLASK_ENV=production
# ===== CONFIGURACIÓN DE BASE DE DATOS =====
# SQLite (por defecto)
DATABASE_PATH=/app/data/cafeteria.db
# PostgreSQL (opcional - descomentar si se usa PostgreSQL)
# DATABASE_URL=postgresql://usuario:password@localhost:5432/cafeteria
# PGHOST=localhost
# PGPORT=5432
# PGDATABASE=cafeteria
# PGUSER=usuario
# PGPASSWORD=password
# ===== CONFIGURACIÓN REGIONAL =====
# Zona horaria
TZ=Europe/Madrid
# Idioma
LANG=es_ES.UTF-8
# ===== CONFIGURACIÓN DE APLICACIÓN =====
# Puerto de la aplicación
PORT=5000
# Número de workers de Gunicorn
WORKERS=4
# Timeout de Gunicorn (segundos)
TIMEOUT=120
# ===== NOTAS DE DESPLIEGUE =====
# 1. Copiar este archivo como .env y configurar las variables
# 2. Generar SESSION_SECRET aleatorio para producción
# 3. Ajustar WORKERS según CPU disponible (recomendado: 2 x núcleos + 1)
# 4. Si usas PostgreSQL, descomentar variables de PostgreSQL y comentar DATABASE_PATH