Compare commits

...

3 Commits

Author SHA1 Message Date
valknar cf32e669cb fix(gitea): use .RunModeIsProd and hardcode Umami values in header template
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 10:34:21 +02:00
valknar e613d766ec fix(gitea): revert to UMAMI_ID/UMAMI_SRC and use .UmamiSrc/.UmamiId template vars
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 10:26:39 +02:00
valknar 53608a7195 fix(gitea): use .UmamiSrc/.UmamiScript template vars for Umami analytics
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 10:24:57 +02:00
3 changed files with 2 additions and 6 deletions
-2
View File
@@ -3,5 +3,3 @@ NETWORK_NAME=falcon_network
RUNNER_TOKEN=change_me
EMAIL_FROM=gitea@pivoine.art
EMAIL_USER=Gitea
UMAMI_SRC=https://umami.example.com/script.js
UMAMI_ID=
-2
View File
@@ -36,8 +36,6 @@ services:
GITEA__ui__THEMES: gitea-auto,gitea-light,gitea-dark,arc-green,edge-auto,edge-dark,edge-light,everforest-auto,everforest-dark,everforest-light,gruvbox-auto,gruvbox-dark,gruvbox-light,gruvbox-material-auto,gruvbox-material-dark,gruvbox-material-light,nord,palenight,soft-era,sonokai,sonokai-andromeda,sonokai-atlantis,sonokai-espresso,sonokai-maia,sonokai-shusia
GITEA__ui__DEFAULT_THEME: nord
GITEA__ui__ENABLE_FEED: "true"
UMAMI_SRC: ${UMAMI_SRC}
UMAMI_ID: ${UMAMI_ID}
ports:
- "2222:2222"
volumes:
+2 -2
View File
@@ -1,3 +1,3 @@
{{if and (eq .RunMode "prod") (not .IsSigned)}}
<script defer src="{{env "UMAMI_SRC"}}" data-website-id="{{env "UMAMI_ID"}}"></script>
{{if and .RunModeIsProd (not .IsSigned)}}
<script defer src="https://umami.pivoine.art/script.js" data-website-id="eee7e810-116b-408a-a46d-f51dcec217c2"></script>
{{end}}