Selaa lähdekoodia

Updates prosody config for main muc component.

master
damencho 4 vuotta sitten
vanhempi
commit
689bb3f226

+ 6
- 0
debian/jitsi-meet-prosody.postinst Näytä tiedosto

151
             PROSODY_CONFIG_PRESENT="false"
151
             PROSODY_CONFIG_PRESENT="false"
152
         fi
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
         # Make sure the focus@auth user's roster includes the proxy component (this is idempotent)
160
         # Make sure the focus@auth user's roster includes the proxy component (this is idempotent)
155
         prosodyctl mod_roster_command subscribe focus.$JVB_HOSTNAME $JICOFO_AUTH_USER@auth.$JVB_HOSTNAME
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 Näytä tiedosto

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

Loading…
Peruuta
Tallenna