|
@@ -2,6 +2,7 @@
|
|
{{ $COLIBRI_WEBSOCKET_PORT := .Env.COLIBRI_WEBSOCKET_PORT | default "9090" }}
|
|
{{ $COLIBRI_WEBSOCKET_PORT := .Env.COLIBRI_WEBSOCKET_PORT | default "9090" }}
|
|
{{ $COLIBRI_WEBSOCKET_REGEX := .Env.COLIBRI_WEBSOCKET_REGEX | default "jvb" }}
|
|
{{ $COLIBRI_WEBSOCKET_REGEX := .Env.COLIBRI_WEBSOCKET_REGEX | default "jvb" }}
|
|
{{ $ENABLE_JAAS_COMPONENTS := .Env.ENABLE_JAAS_COMPONENTS | default "0" | toBool }}
|
|
{{ $ENABLE_JAAS_COMPONENTS := .Env.ENABLE_JAAS_COMPONENTS | default "0" | toBool }}
|
|
|
|
+{{ $ENABLE_LOAD_TEST_CLIENT := .Env.ENABLE_LOAD_TEST_CLIENT | default "0" | toBool }}
|
|
{{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool -}}
|
|
{{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool -}}
|
|
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool }}
|
|
{{ $ENABLE_XMPP_WEBSOCKET := .Env.ENABLE_XMPP_WEBSOCKET | default "1" | toBool }}
|
|
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}}
|
|
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}}
|
|
@@ -185,6 +186,35 @@ location @root_path {
|
|
}
|
|
}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
|
|
+ {{- if $ENABLE_LOAD_TEST_CLIENT }}
|
|
|
|
+ # load test minimal client, uncomment when used
|
|
|
|
+ location ~ ^/_load-test/([^/?&:'"]+)$ {
|
|
|
|
+ rewrite ^/_load-test/(.*)$ /load-test/index.html break;
|
|
|
|
+ }
|
|
|
|
+ location ~ ^/_load-test/libs/(.*)$ {
|
|
|
|
+ add_header 'Access-Control-Allow-Origin' '*';
|
|
|
|
+ alias /usr/share/jitsi-meet/load-test/libs/$1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # load-test for subdomains
|
|
|
|
+ location ~ ^/([^/?&:'"]+)/_load-test/([^/?&:'"]+)$ {
|
|
|
|
+ set $subdomain "$1.";
|
|
|
|
+ set $subdir "$1/";
|
|
|
|
+ set $prefix "$1";
|
|
|
|
+
|
|
|
|
+ rewrite ^/(.*)$ /load-test/index.html break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # load-test for subdomains
|
|
|
|
+ location ~ ^/([^/?&:'"]+)/_load-test/libs/(.*)$ {
|
|
|
|
+ set $subdomain "$1.";
|
|
|
|
+ set $subdir "$1/";
|
|
|
|
+ set $prefix "$1";
|
|
|
|
+
|
|
|
|
+ alias /usr/share/jitsi-meet/load-test/libs/$2;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ {{- end }}
|
|
# Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
|
|
# Anything that didn't match above, and isn't a real file, assume it's a room name and redirect to /
|
|
location ~ ^/([^/?&:'"]+)/(.*)$ {
|
|
location ~ ^/([^/?&:'"]+)/(.*)$ {
|
|
set $subdomain "$1.";
|
|
set $subdomain "$1.";
|