# Copy to .env for local runs, or set these as Hugging Face Space secrets. # Required for a public connection URL (free: https://dashboard.ngrok.com) NGROK_AUTHTOKEN= # Recommended: locks the web UI behind Basic auth (username: admin) APP_PASSWORD= # Optional: fixed Postgres credentials (otherwise password is auto-generated each boot) POSTGRES_USER=demo POSTGRES_DB=demo POSTGRES_PASSWORD= # --- Backups (so data survives restarts) --- # Off-Space durable backups to a PRIVATE HF Dataset repo (works on the free tier). # Create a write token at https://huggingface.co/settings/tokens HF_TOKEN= HF_BACKUP_REPO=your-username/pg-backups # Tuning (optional) BACKUP_INTERVAL_MIN=30 BACKUP_KEEP=24 # BACKUP_DIR is auto-chosen: /data/backups if persistent storage is on, else local.