-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
19 lines (16 loc) · 1.45 KB
/
Copy path.env.example
File metadata and controls
19 lines (16 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ── Turso / libSQL (REQUIRED) ─────────────────────────────────────────────────
# Get from https://turso.tech → your database → Connection Details
TURSO_DB_URL=libsql://your-db-name.turso.io
TURSO_AUTH_TOKEN=your-jwt-token-here
# ── Security (REQUIRED in production) ────────────────────────────────────────
# Generate a strong key: openssl rand -hex 32
SECRET_KEY=change-this-to-a-random-64-char-string
# ── App settings (optional — defaults shown) ──────────────────────────────────
ENVIRONMENT=development # 'production' disables /docs and enables HSTS
SPEED_TEST_INTERVAL=300 # seconds between auto-tests (only if AUTO_SPEED_TEST=true)
AUTO_SPEED_TEST=false # 'true' enables background scheduler
OUTAGE_THRESHOLD_MBPS=1.0 # download below this = is_outage=true
MAX_HISTORY_HOURS=168 # max hours for /measurements/recent and /stats
# ── CORS ──────────────────────────────────────────────────────────────────────
# Add your production domain when deploying to Fly.io
CORS_ORIGINS=["http://localhost:3000","http://localhost"]