Compare commits

...

2 Commits

Author SHA1 Message Date
valknar 40dfe5776a feat(gitea): add Umami analytics via direct custom header template
Mount templates/custom/ directly to Gitea's default GITEA_CUSTOM templates
path. No entrypoint override or envsubst needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-10 12:58:25 +02:00
valknar e5e6a2c302 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>
2026-06-10 12:49:26 +02:00
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@ services:
- ../.data/gitea/config:/etc/gitea
- ./css:/data/gitea/public/assets/css:ro
- ./img:/data/gitea/public/assets/img:ro
- ./templates/custom:/data/gitea/templates/custom:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
db:
+1
View File
@@ -0,0 +1 @@
<script defer src="https://umami.pivoine.art/script.js" data-website-id="eee7e810-116b-408a-a46d-f51dcec217c2"></script>