|
|
|
@ -23,6 +23,27 @@
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# colibri (JVB) websockets
|
|
|
|
|
location ~ ^/colibri-ws/([a-zA-Z0-9-\.]+)/(.*) {
|
|
|
|
|
{% if matrix_nginx_proxy_enabled %}
|
|
|
|
|
resolver 127.0.0.11 valid=5s;
|
|
|
|
|
set $backend "matrix-jitsi-jvb:9090";
|
|
|
|
|
proxy_pass http://$backend;
|
|
|
|
|
{% else %}
|
|
|
|
|
{# Generic configuration for use outside of our container setup #}
|
|
|
|
|
proxy_pass http://127.0.0.1:12090;
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
|
|
|
|
tcp_nodelay on;
|
|
|
|
|
}
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|