feat(gitea): add Umami analytics via custom header template

Injects the Umami tracking script into every Gitea page using a custom
header.tmpl generated at startup via envsubst. Script URL and website ID
are externalized to UMAMI_SCRIPT_URL / UMAMI_WEBSITE_ID env vars.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 12:49:26 +02:00
parent 9c65cfc9e3
commit e5e6a2c302
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
TRAEFIK_HOST=dev.example.com
NETWORK_NAME=falcon_network
RUNNER_TOKEN=change_me
UMAMI_SCRIPT_URL=https://umami.example.com/script.js
UMAMI_WEBSITE_ID=change_me