File size: 783 Bytes
8003382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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.