Przeglądaj źródła

feat: Switches by default to using websockets.

j25
damencho 6 miesięcy temu
rodzic
commit
c4fcfb8666

+ 1
- 0
_unlock Wyświetl plik

@@ -0,0 +1 @@
1
+OK

+ 2
- 1
config.js Wyświetl plik

@@ -49,7 +49,8 @@ var config = {
49 49
     bosh: 'https://jitsi-meet.example.com/' + subdir + 'http-bind',
50 50
 
51 51
     // Websocket URL (XMPP)
52
-    // websocket: 'wss://jitsi-meet.example.com/' + subdir + 'xmpp-websocket',
52
+    websocket: 'wss://jitsi-meet.example.com/' + subdir + 'xmpp-websocket',
53
+    websocketKeepAliveUrl: 'https://jitsi-meet.example.com/' + subdir + '_unlock',
53 54
 
54 55
     // Whether BOSH should be preferred over WebSocket if both are configured.
55 56
     // preferBosh: false,

+ 13
- 0
doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example Wyświetl plik

@@ -38,6 +38,11 @@ unlimited_jids = {
38 38
     "jvb@auth.jitmeet.example.com"
39 39
 }
40 40
 
41
+-- https://prosody.im/doc/modules/mod_smacks
42
+smacks_max_unacked_stanzas = 5;
43
+smacks_hibernation_time = 60;
44
+smacks_max_old_sessions = 1;
45
+
41 46
 VirtualHost "jitmeet.example.com"
42 47
     authentication = "jitsi-anonymous" -- do not delete me
43 48
     -- Properties below are modified by jitsi-meet-tokens package config
@@ -58,6 +63,7 @@ VirtualHost "jitmeet.example.com"
58 63
     -- we need bosh
59 64
     modules_enabled = {
60 65
         "bosh";
66
+        "smacks";
61 67
         "ping"; -- Enable mod_ping
62 68
         "speakerstats";
63 69
         "external_services";
@@ -127,6 +133,13 @@ VirtualHost "auth.jitmeet.example.com"
127 133
     authentication = "internal_hashed"
128 134
     smacks_hibernation_time = 15;
129 135
 
136
+VirtualHost "recorder.jitmeet.example.com"
137
+    modules_enabled = {
138
+      "smacks";
139
+    }
140
+    authentication = "internal_hashed"
141
+    smacks_max_old_sessions = 2000;
142
+
130 143
 -- Proxy to jicofo's user JID, so that it doesn't have to register as a component.
131 144
 Component "focus.jitmeet.example.com" "client_proxy"
132 145
     target_address = "focusUser@auth.jitmeet.example.com"

+ 6
- 0
doc/debian/jitsi-meet/jitsi-meet.example Wyświetl plik

@@ -150,6 +150,12 @@ server {
150 150
     #    alias /usr/share/jitsi-meet/load-test/libs/$1;
151 151
     #}
152 152
 
153
+    location = /_unlock {
154
+        add_header 'Access-Control-Allow-Origin' '*';
155
+        add_header Strict-Transport-Security 'max-age=63072000; includeSubDomains';
156
+        add_header "Cache-Control" "no-cache, no-store";
157
+    }
158
+
153 159
     location ~ ^/conference-request/v1(\/.*)?$ {
154 160
         proxy_pass http://127.0.0.1:8888/conference-request/v1$1;
155 161
         add_header "Cache-Control" "no-cache, no-store";

Ładowanie…
Anuluj
Zapisz