From 195e0a44814dae2e754f1a42c4b0a676d16ea79a Mon Sep 17 00:00:00 2001 From: James Reilly Date: Fri, 4 Oct 2024 20:53:35 +0530 Subject: [PATCH] Update Cinny nginx.conf.j2 to include service worker rewrite Cinny has added a service worker to support authenticated media and requires /sw,js to resolve to the serviceworker js file --- roles/custom/matrix-client-cinny/templates/nginx.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/custom/matrix-client-cinny/templates/nginx.conf.j2 b/roles/custom/matrix-client-cinny/templates/nginx.conf.j2 index 3ae9cae7d..2b70f32d2 100644 --- a/roles/custom/matrix-client-cinny/templates/nginx.conf.j2 +++ b/roles/custom/matrix-client-cinny/templates/nginx.conf.j2 @@ -59,6 +59,7 @@ http { rewrite ^/manifest.json$ /manifest.json break; rewrite ^.*/olm.wasm$ /olm.wasm break; + rewrite ^/sw.js$ /sw.js break; rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break; rewrite ^/public/(.*)$ /public/$1 break;