Bladeren bron

jicofo: add ability to disable auth

Luigi Rubino 1 jaar geleden
bovenliggende
commit
57a7c22
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 1 0
      docker-compose.yml
  2. 2 1
      jicofo/rootfs/defaults/jicofo.conf

+ 1 - 0
docker-compose.yml

@@ -286,6 +286,7 @@ services:
             - ENABLE_AUTO_LOGIN
             - JICOFO_AUTH_PASSWORD
             - JICOFO_BRIDGE_REGION_GROUPS
+            - JICOFO_ENABLE_AUTH
             - JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS
             - JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT
             - JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT

+ 2 - 1
jicofo/rootfs/defaults/jicofo.conf

@@ -1,4 +1,5 @@
 {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
+{{ $JICOFO_ENABLE_AUTH := (.Env.JICOFO_ENABLE_AUTH | default .Env.ENABLE_AUTH) | default "0" | toBool }}
 {{ $ENABLE_SCTP := .Env.ENABLE_SCTP | default "0" | toBool }}
 {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
 {{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool }}
@@ -24,7 +25,7 @@
 {{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}}
 
 jicofo {
-    {{ if $ENABLE_AUTH }}
+    {{ if $JICOFO_ENABLE_AUTH }}
     authentication {
       enabled = true
       // The type of authentication. Supported values are XMPP, JWT or SHIBBOLETH (default).