From ad9be137d22b64e6613c348d5845dda288055bb5 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 28 Jul 2021 15:44:31 +0200
Subject: [PATCH] Configure mongo user + db

---
 flux2/apps/wekan/release.yaml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/flux2/apps/wekan/release.yaml b/flux2/apps/wekan/release.yaml
index 12acebe5e..09774f1f4 100644
--- a/flux2/apps/wekan/release.yaml
+++ b/flux2/apps/wekan/release.yaml
@@ -27,13 +27,14 @@ spec:
     # Default env vars in container image: https://github.com/wekan/wekan/blob/master/Dockerfile
     # Env vars explained: https://github.com/wekan/wekan/blob/master/docker-compose.yml
     env:
-      - name: "PASSWORD_LOGIN_ENABLED"
-        value: "false"
       # Debug OIDC OAuth2 etc
       - name: "DEBUG"
         value: "true"
       - name: "MAIL_FROM"
         value: "Wekan notifications <${outgoing_mail_from_address}>"
+      # Authentication
+      - name: "PASSWORD_LOGIN_ENABLED"
+        value: "false"
       - name: "OAUTH2_ENABLED"
         value: "TRUE"
       - name: "OAUTH2_CLIENT_ID"
@@ -95,6 +96,8 @@ spec:
       enabled: true
       architecture: standalone
       auth:
+        username: wekan
+        database: wekan
         existingSecret: oas-wekan-variables
       podAnnotations:
         # Let the backup system include rocketchat data stored in mongodb.
-- 
GitLab