CoolFace
Apppublic

imkrish/remote-postgres

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
.env.example24 linesDownload Raw Back to root
1# Copy to .env for local runs, or set these as Hugging Face Space secrets.2 3# Required for a public connection URL (free: https://dashboard.ngrok.com)4NGROK_AUTHTOKEN=5 6# Recommended: locks the web UI behind Basic auth (username: admin)7APP_PASSWORD=8 9# Optional: fixed Postgres credentials (otherwise password is auto-generated each boot)10POSTGRES_USER=demo11POSTGRES_DB=demo12POSTGRES_PASSWORD=13 14# --- Backups (so data survives restarts) ---15# Off-Space durable backups to a PRIVATE HF Dataset repo (works on the free tier).16# Create a write token at https://huggingface.co/settings/tokens17HF_TOKEN=18HF_BACKUP_REPO=your-username/pg-backups19 20# Tuning (optional)21BACKUP_INTERVAL_MIN=3022BACKUP_KEEP=2423# BACKUP_DIR is auto-chosen: /data/backups if persistent storage is on, else local.24