|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
{{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }} |
|
|
|
|
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool }} |
|
|
|
|
{{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.JVB_WS_SERVER_ID_FALLBACK -}} |
|
|
|
|
|
|
|
|
|
server_name _; |
|
|
|
|
|
|
|
|
@ -48,7 +49,7 @@ location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|. |
|
|
|
|
{{ if $ENABLE_COLIBRI_WEBSOCKET }} |
|
|
|
|
# colibri (JVB) websockets |
|
|
|
|
location ~ ^/colibri-ws/([a-zA-Z0-9-\.]+)/(.*) { |
|
|
|
|
proxy_pass http://$1:9090/colibri-ws/$1/$2$is_args$args; |
|
|
|
|
proxy_pass http://{{ $WS_SERVER_ID }}:9090/colibri-ws/$1/$2$is_args$args; |
|
|
|
|
proxy_http_version 1.1; |
|
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
|