Adds a comprehensive DEPLOYMENT.md guide, a setup-server.sh script for AlmaLinux 9 to install Node.js, PostgreSQL, Nginx, and PM2, a deploy.sh script for CI/CD deployment, an nginx.conf for server configuration, and a push-to-gitlab.sh helper script for Replit integration. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 99f0fce6-9386-489a-9632-1d81223cab44 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/99f0fce6-9386-489a-9632-1d81223cab44/H8Wilyj
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
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
|
|
|
|
# =================== REPLIT AUTH (Produzione) ===================
|
|
# Configurazione OIDC per autenticazione
|
|
ISSUER_URL=https://replit.com/oidc
|
|
REPL_ID=your-repl-id-here
|
|
REPLIT_DOMAINS=tuodominio.it,www.tuodominio.it
|
|
|
|
# =================== NODE ENVIRONMENT ===================
|
|
NODE_ENV=production
|
|
PORT=5000
|
|
|
|
# =================== LOGGING (opzionale) ===================
|
|
LOG_LEVEL=info
|
|
|
|
# =================== BACKUP (opzionale) ===================
|
|
# BACKUP_ENABLED=true
|
|
# BACKUP_SCHEDULE="0 2 * * *" # Daily at 2 AM
|
|
# BACKUP_RETENTION_DAYS=30
|