From 1f2b14df1d657ff7b3bde919ed3e6c287d5022f5 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Fri, 27 Sep 2024 09:14:22 -0500 Subject: [PATCH] feat(prosody): enable recorder domain for s2s to visitor nodes to allow transcription support (#1905) --- prosody/rootfs/defaults/conf.d/visitors.cfg.lua | 5 +++++ prosody/rootfs/defaults/prosody.cfg.lua | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/prosody/rootfs/defaults/conf.d/visitors.cfg.lua b/prosody/rootfs/defaults/conf.d/visitors.cfg.lua index 035759a..3d32a92 100644 --- a/prosody/rootfs/defaults/conf.d/visitors.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/visitors.cfg.lua @@ -1,7 +1,9 @@ {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool -}} {{ $ENABLE_GUEST_DOMAIN := and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool) -}} {{ $ENABLE_RATE_LIMITS := .Env.PROSODY_ENABLE_RATE_LIMITS | default "0" | toBool -}} +{{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool -}} {{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}} +{{ $ENABLE_TRANSCRIPTIONS := .Env.ENABLE_TRANSCRIPTIONS | default "0" | toBool -}} {{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool -}} {{ $JIBRI_RECORDER_USER := .Env.JIBRI_RECORDER_USER | default "recorder" -}} {{ $JIGASI_TRANSCRIBER_USER := .Env.JIGASI_TRANSCRIBER_USER | default "transcriber" -}} @@ -99,6 +101,9 @@ s2sout_override = { {{ if $ENABLE_GUEST_DOMAIN -}} ["{{ $XMPP_GUEST_DOMAIN }}"] = "tcp://{{ $XMPP_SERVER }}:{{ $XMPP_SERVER_S2S_PORT }}"; {{ end -}} +{{ if or $ENABLE_RECORDING $ENABLE_TRANSCRIPTIONS -}} + ["{{ $XMPP_RECORDER_DOMAIN }}"] = "tcp://{{ $XMPP_SERVER }}:{{ $XMPP_SERVER_S2S_PORT }}"; +{{ end -}} } muc_limit_messages_count = 10; diff --git a/prosody/rootfs/defaults/prosody.cfg.lua b/prosody/rootfs/defaults/prosody.cfg.lua index 274b32d..76e8902 100644 --- a/prosody/rootfs/defaults/prosody.cfg.lua +++ b/prosody/rootfs/defaults/prosody.cfg.lua @@ -224,6 +224,11 @@ s2s_whitelist = { {{ end -}} {{ if $ENABLE_GUEST_DOMAIN -}} '{{ $XMPP_GUEST_DOMAIN }}'; + + {{ end }} + {{ if or $ENABLE_RECORDING $ENABLE_TRANSCRIPTIONS -}} + '{{ $XMPP_RECORDER_DOMAIN }}'; + {{ end -}} } {{ end -}}