feat: Adds room info http endpoint for jaas components.
This commit is contained in:
@@ -83,6 +83,7 @@ VirtualHost "jigasi.meet.jitsi"
|
|||||||
modules_enabled = {
|
modules_enabled = {
|
||||||
"ping";
|
"ping";
|
||||||
"bosh";
|
"bosh";
|
||||||
|
"muc_password_check";
|
||||||
}
|
}
|
||||||
authentication = "token"
|
authentication = "token"
|
||||||
app_id = "jitsi";
|
app_id = "jitsi";
|
||||||
|
|||||||
@@ -40,6 +40,15 @@ location = /external_api.js {
|
|||||||
alias /usr/share/jitsi-meet/libs/external_api.min.js;
|
alias /usr/share/jitsi-meet/libs/external_api.min.js;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{ if $ENABLE_JAAS_COMPONENTS }}
|
||||||
|
location = /_api/room-info {
|
||||||
|
proxy_pass {{ $XMPP_BOSH_URL_BASE }}/room-info?prefix=$prefix&$args;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# ensure all static content can always be found first
|
# ensure all static content can always be found first
|
||||||
location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$ {
|
location ~ ^/(libs|css|static|images|fonts|lang|sounds|connection_optimization|.well-known)/(.*)$ {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
@@ -138,6 +147,16 @@ location @root_path {
|
|||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $ENABLE_JAAS_COMPONENTS }}
|
||||||
|
location ~ ^/([^/?&:'"]+)/_api/room-info {
|
||||||
|
set $subdomain "$1.";
|
||||||
|
set $subdir "$1/";
|
||||||
|
set $prefix "$1";
|
||||||
|
|
||||||
|
rewrite ^/(.*)$ /_api/room-info;
|
||||||
|
}
|
||||||
|
{{ 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.";
|
||||||
|
|||||||
Reference in New Issue
Block a user