From e9392302b164278329fe9b8e200f44af6cb57fa0 Mon Sep 17 00:00:00 2001 From: DevelopingEntitiesWithFuntations <72665734+DevelopingEntitiesWithFuntations@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:49:27 +0000 Subject: [PATCH] prosody: add ability to customize JWT signature type Fixes: #1771 --- docker-compose.yml | 1 + prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 42808ca..6e1b8eb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -232,6 +232,7 @@ services: - JWT_ALLOW_EMPTY - JWT_AUTH_TYPE - JWT_ENABLE_DOMAIN_VERIFICATION + - JWT_SIGN_TYPE - JWT_TOKEN_AUTH_MODULE - MATRIX_UVS_URL - MATRIX_UVS_ISSUER diff --git a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua index 5f1181a..1358057 100644 --- a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua @@ -134,6 +134,9 @@ 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" }