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:
valknarandClaude Sonnet 4.6 committed 2026-06-10 12:49:26 +02:00
1 parent 9c65cfc9e3
commit e5e6a2c302
3 files changed
+13

No files matched your search

+1
View File
@@ -0,0 +1 @@
<script defer src="${UMAMI_SCRIPT_URL}" data-website-id="${UMAMI_WEBSITE_ID}"></script>