fix(gitea): use .RunModeIsProd and hardcode Umami values in header template

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 10:34:21 +02:00
parent e613d766ec
commit cf32e669cb
3 changed files with 2 additions and 6 deletions
-2
View File
@@ -3,5 +3,3 @@ NETWORK_NAME=falcon_network
RUNNER_TOKEN=change_me RUNNER_TOKEN=change_me
EMAIL_FROM=gitea@pivoine.art EMAIL_FROM=gitea@pivoine.art
EMAIL_USER=Gitea 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__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__DEFAULT_THEME: nord
GITEA__ui__ENABLE_FEED: "true" GITEA__ui__ENABLE_FEED: "true"
UMAMI_SRC: ${UMAMI_SRC}
UMAMI_ID: ${UMAMI_ID}
ports: ports:
- "2222:2222" - "2222:2222"
volumes: volumes:
+2 -2
View File
@@ -1,3 +1,3 @@
{{if and (eq .RunMode "prod") (not .IsSigned)}} {{if and .RunModeIsProd (not .IsSigned)}}
<script defer src="{{.UmamiSrc}}" data-website-id="{{.UmamiId}}"></script> <script defer src="https://umami.pivoine.art/script.js" data-website-id="eee7e810-116b-408a-a46d-f51dcec217c2"></script>
{{end}} {{end}}