Gate the dashboard on the site's admin login and add a setup page
Like job-tracker, the tracker forwards the visitor's cookies to the site backend's /auth/validate-admin instead of asking for an API key. Signed in, the dashboard shows every device's data. The new /setup page has instructions for each collector and creates and revokes API keys. The userscript is served publicly at /tracker.user.js. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -9,6 +9,9 @@ services:
|
||||
environment:
|
||||
DATABASE_URL: postgres://tracker:tracker@postgres:5432/tracker?sslmode=disable
|
||||
TRACKER_TZ: ${TRACKER_TZ:-UTC}
|
||||
# No main site to borrow a login from here, so the dashboard is open.
|
||||
AUTH_MODE: dev
|
||||
DEV_MODE: "true"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user