|
@@ -35,6 +35,7 @@ server {
|
35
|
35
|
ssl_session_tickets off;
|
36
|
36
|
|
37
|
37
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
38
|
+ set $prefix "";
|
38
|
39
|
|
39
|
40
|
ssl_certificate /etc/jitsi/meet/jitsi-meet.example.com.crt;
|
40
|
41
|
ssl_certificate_key /etc/jitsi/meet/jitsi-meet.example.com.key;
|
|
@@ -76,7 +77,7 @@ server {
|
76
|
77
|
|
77
|
78
|
# BOSH
|
78
|
79
|
location = /http-bind {
|
79
|
|
- proxy_pass http://localhost:5280/http-bind;
|
|
80
|
+ proxy_pass http://127.0.0.1:5280/http-bind?prefix=$prefix&$args;
|
80
|
81
|
proxy_set_header X-Forwarded-For $remote_addr;
|
81
|
82
|
proxy_set_header Host $http_host;
|
82
|
83
|
}
|
|
@@ -125,13 +126,6 @@ server {
|
125
|
126
|
alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
|
126
|
127
|
}
|
127
|
128
|
|
128
|
|
- # Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
|
129
|
|
- location ~ ^/([^/?&:'"]+)/(.*)$ {
|
130
|
|
- set $subdomain "$1.";
|
131
|
|
- set $subdir "$1/";
|
132
|
|
- rewrite ^/([^/?&:'"]+)/(.*)$ /$2;
|
133
|
|
- }
|
134
|
|
-
|
135
|
129
|
# BOSH for subdomains
|
136
|
130
|
location ~ ^/([^/?&:'"]+)/http-bind {
|
137
|
131
|
set $subdomain "$1.";
|
|
@@ -149,4 +143,11 @@ server {
|
149
|
143
|
|
150
|
144
|
rewrite ^/(.*)$ /xmpp-websocket;
|
151
|
145
|
}
|
|
146
|
+
|
|
147
|
+ # Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
|
|
148
|
+ location ~ ^/([^/?&:'"]+)/(.*)$ {
|
|
149
|
+ set $subdomain "$1.";
|
|
150
|
+ set $subdir "$1/";
|
|
151
|
+ rewrite ^/([^/?&:'"]+)/(.*)$ /$2;
|
|
152
|
+ }
|
152
|
153
|
}
|