|
|
|
@ -8,6 +8,7 @@ |
|
|
|
|
{{ $ENABLE_SUBDOMAINS := .Env.ENABLE_SUBDOMAINS | default "true" | toBool -}} |
|
|
|
|
{{ $XMPP_DOMAIN := .Env.XMPP_DOMAIN | default "meet.jitsi" -}} |
|
|
|
|
{{ $XMPP_BOSH_URL_BASE := .Env.XMPP_BOSH_URL_BASE | default "http://xmpp.meet.jitsi:5280" -}} |
|
|
|
|
{{ $CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN := .Env.CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN | default "*" }} |
|
|
|
|
|
|
|
|
|
server_name _; |
|
|
|
|
|
|
|
|
@ -60,7 +61,7 @@ location = /_api/room-info { |
|
|
|
|
|
|
|
|
|
# ensure all static content can always be found first |
|
|
|
|
location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$ { |
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*'; |
|
|
|
|
add_header 'Access-Control-Allow-Origin' '{{ $CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN }}'; |
|
|
|
|
alias /usr/share/jitsi-meet/$1/$2; |
|
|
|
|
|
|
|
|
|
# cache all versioned files |
|
|
|
@ -192,7 +193,7 @@ location @root_path { |
|
|
|
|
rewrite ^/_load-test/(.*)$ /load-test/index.html break; |
|
|
|
|
} |
|
|
|
|
location ~ ^/_load-test/libs/(.*)$ { |
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*'; |
|
|
|
|
add_header 'Access-Control-Allow-Origin' '{{ $CORS_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN }}'; |
|
|
|
|
alias /usr/share/jitsi-meet/load-test/libs/$1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|