diff --git a/docker-compose.yml b/docker-compose.yml index 10a1345b..7859670a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,6 +44,7 @@ services: - DIALIN_NUMBERS_URL - DIALOUT_AUTH_URL - DIALOUT_CODES_URL + - DISABLE_POLLS - DROPBOX_APPKEY - DROPBOX_REDIRECT_URI - DYNAMIC_BRANDING_URL @@ -56,6 +57,7 @@ services: - ENABLE_IPV6 - ENABLE_LIPSYNC - ENABLE_NO_AUDIO_DETECTION + - ENABLE_REACTIONS - ENABLE_P2P - ENABLE_PREJOIN_PAGE - ENABLE_WELCOME_PAGE @@ -135,6 +137,7 @@ services: - ${CONFIG}/prosody/prosody-plugins-custom:/prosody-plugins-custom:Z environment: - AUTH_TYPE + - DISABLE_POLLS - ENABLE_AUTH - ENABLE_GUESTS - ENABLE_LOBBY diff --git a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua index 730092dd..f3b23f6e 100644 --- a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua @@ -12,6 +12,7 @@ {{ $TURN_PORT := .Env.TURN_PORT | default "443" }} {{ $TURNS_PORT := .Env.TURNS_PORT | default "443" }} {{ $XMPP_MUC_DOMAIN_PREFIX := (split "." .Env.XMPP_MUC_DOMAIN)._0 }} +{{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}} admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}", @@ -187,9 +188,9 @@ Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc" storage = "memory" modules_enabled = { "ping"; - {{ if .Env.XMPP_INTERNAL_MUC_MODULES }} + {{ if .Env.XMPP_INTERNAL_MUC_MODULES -}} "{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}"; - {{ end }} + {{ end -}} } restrict_room_creation = true muc_room_locking = false @@ -199,12 +200,15 @@ Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" storage = "memory" modules_enabled = { "muc_meeting_id"; - {{ if .Env.XMPP_MUC_MODULES }} + {{ if .Env.XMPP_MUC_MODULES -}} "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}"; - {{ end }} - {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") }} + {{ end -}} + {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") -}} "{{ $JWT_TOKEN_AUTH_MODULE }}"; - {{ end }} + {{ end -}} + {{ if not $DISABLE_POLLS -}} + "polls"; + {{ end -}} } muc_room_cache_size = 1000 muc_room_locking = false diff --git a/web/rootfs/defaults/settings-config.js b/web/rootfs/defaults/settings-config.js index 12d477f8..70c1d166 100644 --- a/web/rootfs/defaults/settings-config.js +++ b/web/rootfs/defaults/settings-config.js @@ -39,6 +39,8 @@ {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN -}} {{ $DISABLE_DEEP_LINKING := .Env.DISABLE_DEEP_LINKING | default "false" | toBool -}} {{ $VIDEOQUALITY_ENFORCE_PREFERRED_CODEC := .Env.VIDEOQUALITY_ENFORCE_PREFERRED_CODEC | default "false" | toBool -}} +{{ $DISABLE_POLLS := .Env.DISABLE_POLLS | default "false" | toBool -}} +{{ $ENABLE_REACTIONS := .Env.ENABLE_REACTIONS | default "true" | toBool -}} // Video configuration. // @@ -347,3 +349,9 @@ config.videoQuality.maxBitratesVideo.VP8 = { low: {{ .Env.VIDEOQUALITY_BITRATE_V {{ if and .Env.VIDEOQUALITY_BITRATE_VP9_LOW .Env.VIDEOQUALITY_BITRATE_VP9_STANDARD .Env.VIDEOQUALITY_BITRATE_VP9_HIGH -}} config.videoQuality.maxBitratesVideo.VP9 = { low: {{ .Env.VIDEOQUALITY_BITRATE_VP9_LOW }}, standard: {{ .Env.VIDEOQUALITY_BITRATE_VP9_STANDARD }}, high: {{ .Env.VIDEOQUALITY_BITRATE_VP9_HIGH }} }; {{ end -}} + + // Enables reactions feature. +config.enableReactions = {{ $ENABLE_REACTIONS }}; + +// Polls +config.disablePolls = {{ $DISABLE_POLLS }};