← back to Rentv 826 Tracker
.env.example
15 lines
# Per-client DB (rentv_826) — least-privilege role, loopback scram-sha-256
DATABASE_URL=postgres://rentv_826:CHANGEME@127.0.0.1:5432/rentv_826
# nginx log to read (the tracker filters /826/ authed lines out of it). Single-source
# mode: point LIVE_LOG and BACKFILL_LOG at the same file — the first offset-0 pass
# backfills history, then it tails the delta. No nginx config change required.
LIVE_LOG=/var/log/nginx/rentv.access.log
BACKFILL_LOG=/var/log/nginx/rentv.access.log
# which client (row in clients table) this tracker attributes time to
CLIENT_SLUG=boomer
# inactivity gap (minutes) that ends a session
SESSION_GAP_MIN=30
# optional: regenerate a static dashboard into the /826/ static dir (served under the
# existing Basic-Auth at /826/stats.html — no nginx change). Empty disables it.
STATS_HTML=/var/www/rentv-826/stats.html