* prosody: brewery mode for jvb/jicofo discovery muc * do not include c2s limits in brewery modepull/1696/head
parent
52eef2eb23
commit
46b98b5a7a
@ -0,0 +1,36 @@ |
|||||||
|
{{ $REGION_NAME := .Env.PROSODY_REGION_NAME | default "default" -}} |
||||||
|
{{ $RELEASE_NUMBER := .Env.RELEASE_NUMBER | default "" -}} |
||||||
|
{{ $SHARD_NAME := .Env.SHARD | default "default" -}} |
||||||
|
{{ $JVB_XMPP_AUTH_DOMAIN := .Env.JVB_XMPP_AUTH_DOMAIN | default "auth.jvb.meet.jitsi" -}} |
||||||
|
{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN := .Env.JVB_XMPP_INTERNAL_MUC_DOMAIN | default "muc.jvb.meet.jitsi" -}} |
||||||
|
{{ $JVB_AUTH_USER := .Env.JVB_AUTH_USER | default "jvb" -}} |
||||||
|
|
||||||
|
admins = { |
||||||
|
"focus@{{ $JVB_XMPP_AUTH_DOMAIN }}", |
||||||
|
"{{ $JVB_AUTH_USER }}@{{ $JVB_XMPP_AUTH_DOMAIN }}" |
||||||
|
} |
||||||
|
|
||||||
|
plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" } |
||||||
|
|
||||||
|
VirtualHost "{{ $JVB_XMPP_AUTH_DOMAIN }}" |
||||||
|
modules_enabled = { |
||||||
|
"ping"; |
||||||
|
} |
||||||
|
authentication = "internal_hashed" |
||||||
|
ssl = { |
||||||
|
key = "/config/certs/{{ $JVB_XMPP_AUTH_DOMAIN }}.key"; |
||||||
|
certificate = "/config/certs/{{ $JVB_XMPP_AUTH_DOMAIN }}.crt"; |
||||||
|
} |
||||||
|
|
||||||
|
Component "{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN }}" "muc" |
||||||
|
modules_enabled = { |
||||||
|
"ping", |
||||||
|
"muc_hide_all"; |
||||||
|
"muc_filter_access"; |
||||||
|
} |
||||||
|
storage = "memory" |
||||||
|
muc_room_cache_size = 10000 |
||||||
|
muc_filter_whitelist="{{ $JVB_XMPP_AUTH_DOMAIN }}" |
||||||
|
muc_room_locking = false |
||||||
|
muc_room_default_public_jids = true |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
{{ $JVB_XMPP_AUTH_DOMAIN := .Env.JVB_XMPP_AUTH_DOMAIN | default "auth.jvb.meet.jitsi" -}} |
||||||
|
{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN := .Env.JVB_XMPP_INTERNAL_MUC_DOMAIN | default "muc.jvb.meet.jitsi" -}} |
||||||
|
{{ $JVB_AUTH_USER := .Env.JVB_AUTH_USER | default "jvb" -}} |
||||||
|
{{ $JVB_BREWERY_MUC := .Env.JVB_BREWERY_MUC | default "jvbbrewery" -}} |
||||||
|
# Drop all presence from a jvb in a MUC to a jvb |
||||||
|
FROM: {{ $JVB_BREWERY_MUC }}@{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN }} |
||||||
|
TO: {{ $JVB_AUTH_USER }}@{{ $JVB_XMPP_AUTH_DOMAIN }} |
||||||
|
KIND: presence |
||||||
|
# Seems safer to allow all "unavailable" to pass |
||||||
|
TYPE: available |
||||||
|
# Allow self-presence (code=110) |
||||||
|
NOT INSPECT: {http://jabber.org/protocol/muc#user}x/status@code=110 |
||||||
|
DROP. |
Loading…
Reference in new issue