Single-binary self-hosted website analytics on Rust axum: collector API, dashboards, world map, and PDF reports.
analyticsaxumdockerrustself-hostedsqliteviteweb-analytics
1# Single-operator dashboard password. Required.
2ANALYTICS_PASSWORD=change-me
3
4# Optional: 32+ random bytes used to sign the session cookie. If absent, the
5# cookie key is derived deterministically from ANALYTICS_PASSWORD (so changing
6# the password invalidates all existing sessions). Setting this explicitly is
7# preferred — `openssl rand -base64 64` works.
8# ANALYTICS_COOKIE_SECRET=
9
10# Used in templates for absolute URLs (sitemap, og tags, the embed snippet
11# shown on the dashboard). Keep it without a trailing slash.
12BASE_URL=https://analytics.example.com