From 32ca547be3df8419b58cf1517fcce80a082b104d Mon Sep 17 00:00:00 2001 From: Thore Cimbal Date: Thu, 13 Aug 2026 12:00:00 +0000 Subject: [PATCH] feat(wiki): configurable site title via WIKI_SITE_TITLE The site title (top-left + browser tab) was the hardcoded "Wiki.js". Drive it from a deployment variable instead; the config job sets site.title from WIKI_SITE_TITLE (default "Wiki"), set here to wiki.axion1337.chat. --- apps/production/wikijs-config.py | 11 +++++++---- apps/production/wikijs-config.yaml | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/production/wikijs-config.py b/apps/production/wikijs-config.py index a6264c1..cf0c24d 100644 --- a/apps/production/wikijs-config.py +++ b/apps/production/wikijs-config.py @@ -196,10 +196,13 @@ def ensure_theming(jwt: str): 'injectBody:$b){responseResult{succeeded message}}}}', jwt, {"t": tc["theme"], "i": tc["iconset"], "d": True, "tp": tc["tocPosition"], "c": tc["injectCSS"], "h": tc["injectHead"], "b": tc["injectBody"]}) - gql('mutation($bg:String!,$logo:String!){site{updateConfig(authLoginBgUrl:$bg,logoUrl:$logo)' - '{responseResult{succeeded message}}}}', - jwt, {"bg": bg, "logo": logo}) - log("Theming gesetzt (Dark-Default, Logo + Login-Hintergrund aus gemounteten Assets)") + # Site-Titel (oben links / Browser-Tab) aus der Deployment-Variable — nicht mehr + # das hartkodierte "Wiki.js". Reproduzierbar über WIKI_SITE_TITLE. + title = os.environ.get("WIKI_SITE_TITLE", "Wiki").strip() or "Wiki" + gql('mutation($bg:String!,$logo:String!,$ttl:String!){site{updateConfig(' + 'authLoginBgUrl:$bg,logoUrl:$logo,title:$ttl){responseResult{succeeded message}}}}', + jwt, {"bg": bg, "logo": logo, "ttl": title}) + log(f"Theming gesetzt (Titel '{title}', Dark-Default, Logo + Hintergrund aus Mounts)") def ensure_git_storage(jwt: str): diff --git a/apps/production/wikijs-config.yaml b/apps/production/wikijs-config.yaml index 85a47f5..567485d 100644 --- a/apps/production/wikijs-config.yaml +++ b/apps/production/wikijs-config.yaml @@ -25,6 +25,9 @@ spec: value: http://wikijs:3000 - name: WIKI_SITE_URL value: https://wiki.axion1337.chat + # Site-Titel (oben links + Browser-Tab), konfigurierbar pro Deployment. + - name: WIKI_SITE_TITLE + value: wiki.axion1337.chat - name: WIKI_ADMIN_EMAIL valueFrom: secretKeyRef: