From cf32e669cbe3a4fee81cf1c258208bec0e029ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 16 Jun 2026 10:34:21 +0200 Subject: [PATCH] fix(gitea): use .RunModeIsProd and hardcode Umami values in header template Co-Authored-By: Claude Sonnet 4.6 --- gitea/.env.example | 2 -- gitea/compose.yml | 2 -- gitea/templates/custom/header.tmpl | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gitea/.env.example b/gitea/.env.example index 4a9c59d..c630244 100644 --- a/gitea/.env.example +++ b/gitea/.env.example @@ -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= diff --git a/gitea/compose.yml b/gitea/compose.yml index a509349..65ca25b 100644 --- a/gitea/compose.yml +++ b/gitea/compose.yml @@ -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: diff --git a/gitea/templates/custom/header.tmpl b/gitea/templates/custom/header.tmpl index a0c4af0..8cc9b32 100644 --- a/gitea/templates/custom/header.tmpl +++ b/gitea/templates/custom/header.tmpl @@ -1,3 +1,3 @@ -{{if and (eq .RunMode "prod") (not .IsSigned)}} - +{{if and .RunModeIsProd (not .IsSigned)}} + {{end}}