Browse Source

Updates prosody config for main muc component.

master
damencho 4 years ago
parent
commit
689bb3f226

+ 6
- 0
debian/jitsi-meet-prosody.postinst View File

@@ -151,6 +151,12 @@ case "$1" in
151 151
             PROSODY_CONFIG_PRESENT="false"
152 152
         fi
153 153
 
154
+        # Updates main muc component
155
+        MAIN_MUC_PATTERN="Component \"conference.$JVB_HOSTNAME\" \"muc\""
156
+        if ! grep -A 2 -- "${MAIN_MUC_PATTERN}" $PROSODY_HOST_CONFIG | grep -q "restrict_room_creation" ;then
157
+            sed -i "s/${MAIN_MUC_PATTERN}/${MAIN_MUC_PATTERN}\n    restrict_room_creation = true/g" $PROSODY_HOST_CONFIG
158
+        fi
159
+
154 160
         # Make sure the focus@auth user's roster includes the proxy component (this is idempotent)
155 161
         prosodyctl mod_roster_command subscribe focus.$JVB_HOSTNAME $JICOFO_AUTH_USER@auth.$JVB_HOSTNAME
156 162
 

+ 1
- 0
doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example View File

@@ -55,6 +55,7 @@ VirtualHost "jitmeet.example.com"
55 55
     -- muc_lobby_whitelist = { "recorder.jitmeet.example.com" } -- Here we can whitelist jibri to enter lobby enabled rooms
56 56
 
57 57
 Component "conference.jitmeet.example.com" "muc"
58
+    restrict_room_creation = true
58 59
     storage = "memory"
59 60
     modules_enabled = {
60 61
         "muc_meeting_id";

Loading…
Cancel
Save