|
|
|
@ -49,6 +49,27 @@
|
|
|
|
|
|
|
|
|
|
tcp_nodelay on;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# XMPP websocket
|
|
|
|
|
location = /xmpp-websocket {
|
|
|
|
|
{% if matrix_nginx_proxy_enabled %}
|
|
|
|
|
resolver 127.0.0.11 valid=5s;
|
|
|
|
|
set $backend {{ matrix_jitsi_xmpp_bosh_url_base }};
|
|
|
|
|
proxy_pass $backend/xmpp-websocket;
|
|
|
|
|
{% else %}
|
|
|
|
|
{# Generic configuration for use outside of our container setup #}
|
|
|
|
|
proxy_pass http://127.0.0.1:5280;
|
|
|
|
|
{% endif %}
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_read_timeout 900s;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
tcp_nodelay on;
|
|
|
|
|
}
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|