Prechádzať zdrojové kódy

prosody: Fixed the wrong position of the JWT_SIGN_TYPE setting in the file (#1796)

* Fixed the JWT_SIGN_TYPE being in Jigasi - added it to the correct spot

* Fixed the wrong position of the JWT_SIGN_TYPE setting in the file
DevelopingEntitiesWithFuntations 1 rok pred
rodič
commit
11285cd

+ 3 - 3
prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua

@@ -135,9 +135,6 @@ VirtualHost "jigasi.meet.jitsi"
       "muc_password_check";
     }
     authentication = "token"
-    {{ if .Env.JWT_SIGN_TYPE }}
-       signature_algorithm = "{{ .Env.JWT_SIGN_TYPE }}"
-    {{ end -}}
     app_id = "jitsi";
     asap_key_server = "https://jaas-public-keys.jitsi.net/jitsi-components/prod-8x8"
     asap_accepted_issuers = { "jaas-components" }
@@ -147,6 +144,9 @@ VirtualHost "jigasi.meet.jitsi"
 VirtualHost "{{ $XMPP_DOMAIN }}"
 {{ if $ENABLE_AUTH }}
   {{ if eq $PROSODY_AUTH_TYPE "jwt" }}
+  {{ if .Env.JWT_SIGN_TYPE }}
+       signature_algorithm = "{{ .Env.JWT_SIGN_TYPE }}"
+    {{ end -}}
     authentication = "{{ $JWT_AUTH_TYPE }}"
     app_id = "{{ .Env.JWT_APP_ID }}"
     app_secret = "{{ .Env.JWT_APP_SECRET }}"