# VigilanzaTurni - Production Environment Variables
# Copia questo file in .env sul server di produzione

# =================== DATABASE ===================
DATABASE_URL=postgresql://vigilanza_user:YOUR_SECURE_PASSWORD@localhost:5432/vigilanza_turni
PGHOST=localhost
PGPORT=5432
PGDATABASE=vigilanza_turni
PGUSER=vigilanza_user
PGPASSWORD=YOUR_SECURE_PASSWORD

# =================== SESSION ===================
# Genera con: openssl rand -base64 32
SESSION_SECRET=YOUR_RANDOM_SESSION_SECRET_HERE

# =================== AUTHENTICATION ===================
# Configurazione OIDC (senza Replit)
ISSUER_URL=https://auth.vt.alfacom.it/oidc
CLIENT_ID=vigilanza-turni
CLIENT_SECRET=YOUR_OIDC_CLIENT_SECRET

# =================== APPLICATION ===================
NODE_ENV=production
PORT=5000
APP_URL=https://vt.alfacom.it

# =================== BACKUP ===================
BACKUP_ENABLED=true
BACKUP_DIR=/var/backups/vigilanza-turni
BACKUP_RETENTION_DAYS=30

# =================== LOGGING ===================
LOG_LEVEL=info
