From 605002f58aa8c07ac091c3a7415603e65266619a Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 15 May 2026 22:31:32 -0400 Subject: [PATCH] feat(thelounge): add config.js with LDAP, reverseProxy, and sqlite storage --- thelounge/config.yaml | 26 ++++++++++++++++++++++++++ thelounge/kustomization.yaml | 1 + thelounge/statefulset.yaml | 8 ++++++++ 3 files changed, 35 insertions(+) create mode 100644 thelounge/config.yaml diff --git a/thelounge/config.yaml b/thelounge/config.yaml new file mode 100644 index 0000000..f0cf564 --- /dev/null +++ b/thelounge/config.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: thelounge-config + namespace: irc +data: + config.js: | + module.exports = { + public: false, + reverseProxy: true, + port: 9000, + + messageStorage: ["sqlite"], + storagePolicy: { + enabled: true, + maxAgeDays: 365, + deletionPolicy: "statusOnly", + }, + + ldap: { + enable: true, + url: "ldap://ak-outpost-ldap-outpost.auth.svc.cluster.local", + primaryKey: "cn", + baseDN: "ou=users,dc=farh,dc=net", + }, + }; diff --git a/thelounge/kustomization.yaml b/thelounge/kustomization.yaml index adce6b4..902b09c 100644 --- a/thelounge/kustomization.yaml +++ b/thelounge/kustomization.yaml @@ -5,3 +5,4 @@ resources: - service.yaml - httproute.yaml - authorizationpolicy.yaml + - config.yaml diff --git a/thelounge/statefulset.yaml b/thelounge/statefulset.yaml index 724f1ce..59b0d2e 100644 --- a/thelounge/statefulset.yaml +++ b/thelounge/statefulset.yaml @@ -62,6 +62,10 @@ spec: volumeMounts: - name: config mountPath: /var/opt/thelounge + - name: thelounge-config + mountPath: /var/opt/thelounge/config.js + subPath: config.js + readOnly: true resources: requests: cpu: "100m" @@ -86,6 +90,10 @@ spec: periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 3 + volumes: + - name: thelounge-config + configMap: + name: thelounge-config volumeClaimTemplates: - metadata: name: config