web,jvb: add ability to disable web sockets for colibri

The fallback is to use SCTP datachannels. This is not recomended.
This commit is contained in:
Saúl Ibarra Corretgé
2021-04-01 13:22:11 +02:00
parent 6c4dce1622
commit e1cebcc253
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
{{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }}
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool }}
server_name _;
@@ -36,6 +37,7 @@ location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.
alias /usr/share/jitsi-meet/$1/$2;
}
{{ 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;
@@ -44,6 +46,7 @@ location ~ ^/colibri-ws/([a-zA-Z0-9-\.]+)/(.*) {
proxy_set_header Connection "upgrade";
tcp_nodelay on;
}
{{ end }}
# BOSH
location = /http-bind {