Spaces:
Paused
Paused
Download .env.example from imkrish/remote-postgres: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/imkrish/remote-postgres/resolve/main/.env.example
- Command line
-
hf download hf://spaces/imkrish/remote-postgres/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/imkrish/remote-postgres/resolve/main/.env.example
783 Bytes
| # 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. | |