6a53d47050
If we match these explicit paths, don't allow the regex matches to run. Otherwise, we might redirect "/http-bind" to "/" which doesn't work. Also, restore the default meet.conf to the upstream; we're not intending to carry any local changes to the rootfs. Change-Id: I119d8c223291d79bd5fe0977264dec4bae126280
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 {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
|
|
}
|
|
|
|
{{ if .Env.ETHERPAD_URL_BASE }}
|
|
# Etherpad-lite
|
|
location /etherpad/ {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
|
|
proxy_pass {{ .Env.ETHERPAD_URL_BASE }}/;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_buffering off;
|
|
proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
|
|
}
|
|
{{ end }}
|