
Many people put hyphens (-) and underscores (_) in their pad names, and Jitsi-Meet seems to support them in its room names too, so add them to our rewrite regex. Change-Id: I819b8d56bf839cf743319e9cd823440c7d910001
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
server_name _;
|
|
|
|
client_max_body_size 0;
|
|
|
|
root /usr/share/jitsi-meet;
|
|
index index.html
|
|
error_page 404 /static/404.html;
|
|
|
|
location ~ ^/([a-zA-Z0-9=\?_-]+)$ {
|
|
rewrite ^/(.*)$ / break;
|
|
}
|
|
|
|
location /config.js {
|
|
alias /config/config.js;
|
|
}
|
|
|
|
location /interface_config.js {
|
|
alias /config/interface_config.js;
|
|
}
|
|
|
|
location /external_api.js {
|
|
alias /usr/share/jitsi-meet/libs/external_api.min.js;
|
|
}
|
|
|
|
location / {
|
|
ssi on;
|
|
}
|
|
|
|
# BOSH
|
|
location /http-bind {
|
|
proxy_pass http://localhost:5280/http-bind;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host localhost;
|
|
}
|
|
|
|
# Etherpad-lite
|
|
location /etherpad/ {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host 'etherpad.opendev.org';
|
|
proxy_cache_bypass $http_upgrade;
|
|
proxy_pass_header Server;
|
|
|
|
proxy_pass https://etherpad.opendev.org/;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_ssl_server_name on;
|
|
proxy_buffering off;
|
|
}
|