fix(wiki): replace remaining Wiki.js favicons; split branding ConfigMap

The browser tab still showed Wiki.js because only favicon.ico + 16/32 were
replaced — the larger icons the tab picks (android-chrome-192, apple-touch-180,
mstile-150) were still the defaults. Add ThreadNet versions and subPath-mount
them. Adding these pushed the single branding ConfigMap to ~1.04 MB (the 1 MiB
etcd limit), so split the 604 KB background into its own platform-branding-bg
ConfigMap mounted at /_assets/img/bg; authLoginBgUrl follows.
This commit is contained in:
Thore Cimbal
2026-08-13 12:00:00 +00:00
parent cc189d3e15
commit 2154f7fe77
7 changed files with 31 additions and 2 deletions
+3
View File
@@ -7,3 +7,6 @@
!apps/production/branding/favicon.ico !apps/production/branding/favicon.ico
!apps/production/branding/favicons/favicon-32x32.png !apps/production/branding/favicons/favicon-32x32.png
!apps/production/branding/favicons/favicon-16x16.png !apps/production/branding/favicons/favicon-16x16.png
!apps/production/branding/favicons/android-chrome-192x192.png
!apps/production/branding/favicons/apple-touch-icon.png
!apps/production/branding/favicons/mstile-150x150.png
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+9 -1
View File
@@ -97,7 +97,15 @@ configMapGenerator:
namespace: matrix namespace: matrix
files: files:
- branding/logo.png - branding/logo.png
- branding/alpenglow.jpg
- branding/favicon.ico - branding/favicon.ico
- branding/favicons/favicon-32x32.png - branding/favicons/favicon-32x32.png
- branding/favicons/favicon-16x16.png - branding/favicons/favicon-16x16.png
- branding/favicons/android-chrome-192x192.png
- branding/favicons/apple-touch-icon.png
- branding/favicons/mstile-150x150.png
# Hintergrundbild separat: alpenglow.jpg (604 KB) würde die obige ConfigMap ans
# 1-MiB-Limit bringen. Eigene ConfigMap, eigener Mount-Pfad (/_assets/img/bg/).
- name: platform-branding-bg
namespace: matrix
files:
- branding/alpenglow.jpg
+1 -1
View File
@@ -199,7 +199,7 @@ def ensure_theming(jwt: str):
# wikijs.yaml + platform-branding ConfigMap): öffentlich ausgeliefert, kein read:assets # wikijs.yaml + platform-branding ConfigMap): öffentlich ausgeliefert, kein read:assets
# für Guests, keine externe URL. Dark als Default (#0050). # für Guests, keine externe URL. Dark als Default (#0050).
logo = "/_assets/img/branding/logo.png" logo = "/_assets/img/branding/logo.png"
bg = "/_assets/img/branding/alpenglow.jpg" bg = "/_assets/img/bg/alpenglow.jpg"
tc = gql('{theming{config{theme iconset darkMode tocPosition injectCSS injectHead injectBody}}}', tc = gql('{theming{config{theme iconset darkMode tocPosition injectCSS injectHead injectBody}}}',
jwt)["theming"]["config"] jwt)["theming"]["config"]
gql('mutation($t:String!,$i:String!,$d:Boolean!,$tp:String,$c:String,$h:String,$b:String){' gql('mutation($t:String!,$i:String!,$d:Boolean!,$tp:String,$c:String,$h:String,$b:String){'
+18
View File
@@ -66,6 +66,9 @@ spec:
- name: branding - name: branding
mountPath: /wiki/assets/img/branding mountPath: /wiki/assets/img/branding
readOnly: true readOnly: true
- name: branding-bg
mountPath: /wiki/assets/img/bg
readOnly: true
# Favicon (#0050): serve-favicon liest /wiki/assets/favicon.ico; der # Favicon (#0050): serve-favicon liest /wiki/assets/favicon.ico; der
# Browser-Tab nutzt zusätzlich die PNGs unter /_assets/favicons/. Einzelne # Browser-Tab nutzt zusätzlich die PNGs unter /_assets/favicons/. Einzelne
# Dateien per subPath überlagern, ohne die restlichen Default-Favicons zu verdecken. # Dateien per subPath überlagern, ohne die restlichen Default-Favicons zu verdecken.
@@ -81,6 +84,18 @@ spec:
mountPath: /wiki/assets/favicons/favicon-16x16.png mountPath: /wiki/assets/favicons/favicon-16x16.png
subPath: favicon-16x16.png subPath: favicon-16x16.png
readOnly: true readOnly: true
- name: branding
mountPath: /wiki/assets/favicons/android-chrome-192x192.png
subPath: android-chrome-192x192.png
readOnly: true
- name: branding
mountPath: /wiki/assets/favicons/apple-touch-icon.png
subPath: apple-touch-icon.png
readOnly: true
- name: branding
mountPath: /wiki/assets/favicons/mstile-150x150.png
subPath: mstile-150x150.png
readOnly: true
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: http port: http
@@ -98,6 +113,9 @@ spec:
- name: branding - name: branding
configMap: configMap:
name: platform-branding name: platform-branding
- name: branding-bg
configMap:
name: platform-branding-bg
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service