diff --git a/.eslintignore b/.eslintignore index 0f012cd781..ab02099b5d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,8 @@ # The build artifacts of the jitsi-meet project. build/* +doc/* + # Third-party source code which we (1) do not want to modify or (2) try to # modify as little as possible. libs/* diff --git a/debian/jitsi-meet-web-config.install b/debian/jitsi-meet-web-config.install index 1e912017a8..75c8210de4 100644 --- a/debian/jitsi-meet-web-config.install +++ b/debian/jitsi-meet-web-config.install @@ -1,3 +1,6 @@ doc/debian/jitsi-meet/jitsi-meet.example /usr/share/jitsi-meet-web-config/ doc/debian/jitsi-meet/jitsi-meet.example-apache /usr/share/jitsi-meet-web-config/ config.js /usr/share/jitsi-meet-web-config/ +doc/jaas/nginx-jaas.conf /usr/share/jitsi-meet-web-config/ +doc/jaas/index-jaas.html /usr/share/jitsi-meet-web-config/ +doc/jaas/8x8.vc-config.js /usr/share/jitsi-meet-web-config/ diff --git a/debian/jitsi-meet-web.install b/debian/jitsi-meet-web.install index 67965926ff..452713bc63 100644 --- a/debian/jitsi-meet-web.install +++ b/debian/jitsi-meet-web.install @@ -12,3 +12,5 @@ resources/robots.txt /usr/share/jitsi-meet/ resources/*.sh /usr/share/jitsi-meet/scripts/ pwa-worker.js /usr/share/jitsi-meet/ manifest.json /usr/share/jitsi-meet/ +doc/jaas/move-to-jaas.sh /usr/share/jitsi-meet/scripts/ +doc/jaas/update-asap-daily.sh /usr/share/jitsi-meet/scripts/ diff --git a/doc/debian/jitsi-meet/jitsi-meet.example b/doc/debian/jitsi-meet/jitsi-meet.example index 1df9e15a79..eb2e685e70 100644 --- a/doc/debian/jitsi-meet/jitsi-meet.example +++ b/doc/debian/jitsi-meet/jitsi-meet.example @@ -58,6 +58,8 @@ server { add_header Strict-Transport-Security "max-age=63072000" always; set $prefix ""; + set $custom_index ""; + set $config_js_location /etc/jitsi/meet/jitsi-meet.example.com-config.js; ssl_certificate /etc/jitsi/meet/jitsi-meet.example.com.crt; ssl_certificate_key /etc/jitsi/meet/jitsi-meet.example.com.key; @@ -77,8 +79,10 @@ server { gzip_proxied no-cache no-store private expired auth; gzip_min_length 512; + include /etc/jitsi/meet/jaas/*.conf; + location = /config.js { - alias /etc/jitsi/meet/jitsi-meet.example.com-config.js; + alias $config_js_location; } location = /external_api.js { @@ -92,6 +96,11 @@ server { proxy_set_header Host $http_host; } + location ~ ^/_api/public/(.*)$ { + autoindex off; + alias /etc/jitsi/meet/public/$1; + } + # ensure all static content can always be found first location ~ ^/(libs|css|static|images|fonts|lang|sounds|.well-known)/(.*)$ { @@ -142,11 +151,12 @@ server { #} location ~ ^/([^/?&:'"]+)$ { + set $roomname "$1"; try_files $uri @root_path; } location @root_path { - rewrite ^/(.*)$ / break; + rewrite ^/(.*)$ /$custom_index break; } location ~ ^/([^/?&:'"]+)/config.js$ @@ -154,7 +164,7 @@ server { set $subdomain "$1."; set $subdir "$1/"; - alias /etc/jitsi/meet/jitsi-meet.example.com-config.js; + alias $config_js_location; } # Matches /(TENANT)/pwa-worker.js or /(TENANT)/manifest.json to rewrite to / and look for file diff --git a/doc/jaas/8x8.vc-config.js b/doc/jaas/8x8.vc-config.js new file mode 100644 index 0000000000..47e8a8f3a8 --- /dev/null +++ b/doc/jaas/8x8.vc-config.js @@ -0,0 +1,7 @@ + + + + + +
+ + +