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