comms: add Element host-config entrypoint script

This commit is contained in:
Brad Stein 2026-01-17 18:29:42 -03:00
parent ebb300b939
commit 578ef5e830
3 changed files with 20 additions and 8 deletions

View File

@ -383,16 +383,14 @@ spec:
participant_limit: 16
brand: Othrys Call
extraVolumes:
- name: element-config-host
- name: element-host-config
configMap:
name: othrys-element-element-web
items:
- key: config.json
path: config.live.bstein.dev.json
name: othrys-element-host-config
defaultMode: 0555
extraVolumeMounts:
- name: element-config-host
mountPath: /tmp/element-web-config/config.live.bstein.dev.json
subPath: config.live.bstein.dev.json
- name: element-host-config
mountPath: /docker-entrypoint.d/20-host-config.sh
subPath: 20-host-config.sh
readOnly: true
ingress:

View File

@ -63,6 +63,11 @@ configMapGenerator:
- bot.py=scripts/atlasbot/bot.py
options:
disableNameSuffixHash: true
- name: othrys-element-host-config
files:
- 20-host-config.sh=scripts/element-host-config.sh
options:
disableNameSuffixHash: true
- name: atlas-kb
files:
- INDEX.md=knowledge/INDEX.md

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
HOST_CONFIG="/tmp/element-web-config/config.live.bstein.dev.json"
BASE_CONFIG="/tmp/element-web-config/config.json"
if [[ -f "$BASE_CONFIG" ]]; then
cp -f "$BASE_CONFIG" "$HOST_CONFIG"
fi