# NexaPG production profile (reverse proxy + HTTPS) # Copy to .env and adjust values for your environment. # ------------------------------ # Application # ------------------------------ APP_NAME=NexaPG Monitor ENVIRONMENT=prod LOG_LEVEL=INFO # ------------------------------ # Core Database # ------------------------------ DB_NAME=nexapg DB_USER=nexapg DB_PASSWORD=change_me DB_PORT=5433 # ------------------------------ # Backend # ------------------------------ BACKEND_PORT=8000 JWT_SECRET_KEY=replace_with_long_random_secret JWT_ALGORITHM=HS256 JWT_ACCESS_TOKEN_MINUTES=15 JWT_REFRESH_TOKEN_MINUTES=10080 ENCRYPTION_KEY=REPLACE_WITH_FERNET_KEY # Production CORS: # - no wildcard # - set exact public UI origin(s) CORS_ORIGINS=https://monitor.example.com POLL_INTERVAL_SECONDS=30 ALERT_ACTIVE_CONNECTION_RATIO_MIN_TOTAL_CONNECTIONS=5 ALERT_ROLLBACK_RATIO_WINDOW_MINUTES=15 ALERT_ROLLBACK_RATIO_MIN_TOTAL_TRANSACTIONS=100 ALERT_ROLLBACK_RATIO_MIN_ROLLBACKS=10 INIT_ADMIN_EMAIL=admin@example.com INIT_ADMIN_PASSWORD=ChangeMe123! # ------------------------------ # Frontend # ------------------------------ # Keep frontend API base relative to avoid HTTPS mixed-content. FRONTEND_PORT=5173 VITE_API_URL=/api/v1