VigilanzaTurni/.env.production.example
marco370 a7df004348 Update deployment scripts and server setup for automatic deployment and database backup
Update deploy scripts to include database backup and restore functionality, configure Nginx for vt.alfacom.it, and modify server setup to use the provided database password.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 42d8028a-fa71-4ec2-938c-e43eedf7df01
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-16 10:54:16 +00:00

34 lines
1014 B
Plaintext

# 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