web: update nginx config from upstream
This commit is contained in:
@@ -3,36 +3,48 @@ server_name _;
|
|||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
root /usr/share/jitsi-meet;
|
root /usr/share/jitsi-meet;
|
||||||
index index.html
|
|
||||||
|
# ssi on with javascript for multidomain variables in config.js
|
||||||
|
ssi on;
|
||||||
|
ssi_types application/x-javascript application/javascript;
|
||||||
|
|
||||||
|
index index.html index.htm;
|
||||||
error_page 404 /static/404.html;
|
error_page 404 /static/404.html;
|
||||||
|
|
||||||
location ~ ^/([a-zA-Z0-9=\?]+)$ {
|
location = /config.js {
|
||||||
rewrite ^/(.*)$ / break;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /config.js {
|
|
||||||
alias /config/config.js;
|
alias /config/config.js;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /interface_config.js {
|
location = /interface_config.js {
|
||||||
alias /config/interface_config.js;
|
alias /config/interface_config.js;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /external_api.js {
|
location = /external_api.js {
|
||||||
alias /usr/share/jitsi-meet/libs/external_api.min.js;
|
alias /usr/share/jitsi-meet/libs/external_api.min.js;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
# ensure all static content can always be found first
|
||||||
ssi on;
|
location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$
|
||||||
|
{
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
|
alias /usr/share/jitsi-meet/$1/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
# BOSH
|
# BOSH
|
||||||
location /http-bind {
|
location = /http-bind {
|
||||||
proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
|
proxy_pass {{ .Env.XMPP_BOSH_URL_BASE }}/http-bind;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
|
proxy_set_header Host {{ .Env.XMPP_DOMAIN }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/([^/?&:'"]+)$ {
|
||||||
|
try_files $uri @root_path;
|
||||||
|
}
|
||||||
|
|
||||||
|
location @root_path {
|
||||||
|
rewrite ^/(.*)$ / break;
|
||||||
|
}
|
||||||
|
|
||||||
{{ if .Env.ETHERPAD_URL_BASE }}
|
{{ if .Env.ETHERPAD_URL_BASE }}
|
||||||
# Etherpad-lite
|
# Etherpad-lite
|
||||||
location /etherpad/ {
|
location /etherpad/ {
|
||||||
|
|||||||
Reference in New Issue
Block a user