From cd582d1926cc651df82e8ed1e8a82c5388809872 Mon Sep 17 00:00:00 2001
From: emrah <emrah.eryilmaz@nordeck.net>
Date: Thu, 3 Aug 2023 09:45:39 +0300
Subject: [PATCH] fix(sovereign-workplace-jitsi): Disable auto-login on jicofo

---
 charts/sovereign-workplace-jitsi/values.yaml | 30 ++++++++++++++++----
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/charts/sovereign-workplace-jitsi/values.yaml b/charts/sovereign-workplace-jitsi/values.yaml
index 817b985..6b50fb7 100644
--- a/charts/sovereign-workplace-jitsi/values.yaml
+++ b/charts/sovereign-workplace-jitsi/values.yaml
@@ -176,7 +176,7 @@ jitsi:
   web:
     replicaCount: 1
     image:
-      tag: "stable-8615"
+      tag: "stable-8719"
       pullPolicy: "IfNotPresent"
     extraVolumes:
       - name: "jitsi-meet-swp"
@@ -222,18 +222,36 @@ jitsi:
 
   prosody:
     image:
-      tag: "stable-8615"
+      tag: "stable-8719"
       pullPolicy: "IfNotPresent"
     extraEnvs:
       - name: "AUTH_TYPE"
         value: "jwt"
+    extraVolumes:
+      - name: "prosody-swp"
+        configMap:
+          name: "prosody-swp"
+          items:
+            - key: "jitsi-meet.cfg.lua"
+              path: "jitsi-meet.cfg.lua"
+      - name: "prosody-plugins-custom"
+        configMap:
+          name: "prosody-plugins-swp"
+    extraVolumeMounts:
+      - name: "prosody-swp"
+        mountPath: "/defaults/conf.d/jitsi-meet.cfg.lua"
+        subPath: "jitsi-meet.cfg.lua"
+      - name: "prosody-plugins-custom"
+        mountPath: "/prosody-plugins-custom"
 
   jicofo:
     image:
-      tag: "stable-8615"
+      tag: "stable-8719"
       pullPolicy: "IfNotPresent"
     extraEnvs:
       AUTH_TYPE: "xmpp"
+      ENABLE_AUTO_LOGIN: "false"
+      JICOFO_AUTH_LIFETIME: "100 milliseconds"
     extraEnvFrom:
       - secretRef:
           name: "{{ include 'prosody.fullname' . }}-jicofo"
@@ -246,9 +264,9 @@ jitsi:
 
   jvb:
     image:
-      tag: "stable-8615"
+      tag: "stable-8719"
       pullPolicy: "IfNotPresent"
-    replicaCount: 2
+    replicaCount: 1
     service:
       externalTrafficPolicy: ""
       enabled: true
@@ -259,7 +277,7 @@ jitsi:
     recording: true
     livestreaming: true
     image:
-      tag: "stable-8615"
+      tag: "stable-8719"
       pullPolicy: "IfNotPresent"
     readinessProbe:
       initialDelaySeconds: 15
-- 
GitLab