diff --git a/webirc/files/config.json b/webirc/files/config.json new file mode 100644 index 0000000..870da8d --- /dev/null +++ b/webirc/files/config.json @@ -0,0 +1,36 @@ +{ + "windowTitle": "hashbang web chat", + "useMonospace": true, + "startupScreen": "welcome", + "restricted": true, + "theme": "Dark", + "themes": [ + { "name": "Default", "url": "static/themes/default" }, + { "name": "Dark", "url": "static/themes/dark" }, + { "name": "Coffee", "url": "static/themes/coffee" }, + { "name": "GrayFox", "url": "static/themes/grayfox" }, + { "name": "Nightswatch", "url": "static/themes/nightswatch" }, + { "name": "Osprey", "url": "static/themes/osprey" }, + { "name": "Radioactive", "url": "static/themes/radioactive" }, + { "name": "Sky", "url": "static/themes/sky" }, + { "name": "Elite", "url": "static/themes/elite" } + ], + "startupOptions": { + "greetingText": "hashbang web chat", + "websocket": "wss://irc.hashbang.sh/", + "channel": "#!", + "nick": "kiwi-n?" + }, + "ircFramework": { + "auto_reconnect": true, + "auto_reconnect_wait": 4000, + "auto_reconnect_max_retries": 10 + }, + "buffers": { + "messageLayout": "compact", + "share_typing": false, + "show_emoticons": false, + "show_link_previews": false, + "inline_link_auto_previews": false + } +} diff --git a/webirc/kustomization.yaml b/webirc/kustomization.yaml index 2f1dc02..8d2bcf0 100644 --- a/webirc/kustomization.yaml +++ b/webirc/kustomization.yaml @@ -7,6 +7,10 @@ resources: replicas: - name: webirc count: 2 +configMapGenerator: +- name: kiwiirc-config + files: + - files/config.json images: - name: hashbang/webirc digest: sha256:5b5d8a7b0e84fa4c5e03643c2feff0ef45a209b5e3613fd98a65a80b30007470 diff --git a/webirc/resources.yaml b/webirc/resources.yaml index fa7230e..81f6583 100644 --- a/webirc/resources.yaml +++ b/webirc/resources.yaml @@ -28,6 +28,14 @@ spec: httpGet: path: / port: http + volumeMounts: + - name: kiwiirc-config + mountPath: /usr/share/nginx/html/static/config.json + subPath: config.json + volumes: + - name: kiwiirc-config + configMap: + name: kiwiirc-config --- apiVersion: v1 kind: Service