Pārlūkot izejas kodu

Adds alias for external_api.js in all default web config.

j8
damencho 6 gadus atpakaļ
vecāks
revīzija
2180d33e3d

+ 1
- 0
debian/jitsi-meet-web-config.postinst Parādīt failu

@@ -132,6 +132,7 @@ case "$1" in
132 132
             echo "org.jitsi.videobridge.rest.jetty.ResourceHandler.alias./config.js=/etc/jitsi/meet/$JVB_HOSTNAME-config.js" >> $JVB_CONFIG
133 133
             echo "org.jitsi.videobridge.rest.jetty.ResourceHandler.alias./interface_config.js=/usr/share/jitsi-meet/interface_config.js" >> $JVB_CONFIG
134 134
             echo "org.jitsi.videobridge.rest.jetty.ResourceHandler.alias./logging_config.js=/usr/share/jitsi-meet/logging_config.js" >> $JVB_CONFIG
135
+            echo "org.jitsi.videobridge.rest.jetty.ResourceHandler.alias./external_api.js=/usr/share/jitsi-meet/libs/external_api.min.js" >> $JVB_CONFIG
135 136
             echo "org.jitsi.videobridge.rest.jetty.RewriteHandler.regex=^/([a-zA-Z0-9]+)$" >> $JVB_CONFIG
136 137
             echo "org.jitsi.videobridge.rest.jetty.RewriteHandler.replacement=/" >> $JVB_CONFIG
137 138
             echo "org.jitsi.videobridge.rest.jetty.SSIResourceHandler.paths=/" >> $JVB_CONFIG

+ 4
- 5
doc/debian/jitsi-meet/jitsi-meet.example Parādīt failu

@@ -26,6 +26,10 @@ server {
26 26
         alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
27 27
     }
28 28
 
29
+    location /external_api.js {
30
+        alias /usr/share/jitsi-meet/libs/external_api.min.js;
31
+    }
32
+
29 33
     location ~ ^/([a-zA-Z0-9=\?]+)$ {
30 34
         rewrite ^/(.*)$ / break;
31 35
     }
@@ -34,11 +38,6 @@ server {
34 38
         ssi on;
35 39
     }
36 40
 
37
-    # Backward compatibility
38
-    location ~ /external_api.* {
39
-        root /usr/share/jitsi-meet/libs;
40
-    }
41
-
42 41
     # BOSH
43 42
     location /http-bind {
44 43
         proxy_pass      http://localhost:5280/http-bind;

+ 5
- 0
doc/debian/jitsi-meet/jitsi-meet.example-apache Parādīt failu

@@ -36,6 +36,11 @@
36 36
     Require all granted
37 37
   </Location>
38 38
 
39
+  Alias "/external_api.js" "/usr/share/jitsi-meet/libs/external_api.min.js"
40
+  <Location /external_api.js>
41
+    Require all granted
42
+  </Location>
43
+
39 44
   ProxyPreserveHost on
40 45
   ProxyPass /http-bind http://localhost:5280/http-bind/
41 46
   ProxyPassReverse /http-bind http://localhost:5280/http-bind/

Notiek ielāde…
Atcelt
Saglabāt