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
This commit is contained in:
James Reilly 2024-10-04 20:53:35 +05:30 committed by GitHub
parent ef22504306
commit 195e0a4481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,6 +59,7 @@ http {
rewrite ^/manifest.json$ /manifest.json break; rewrite ^/manifest.json$ /manifest.json break;
rewrite ^.*/olm.wasm$ /olm.wasm break; rewrite ^.*/olm.wasm$ /olm.wasm break;
rewrite ^/sw.js$ /sw.js break;
rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break; rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break;
rewrite ^/public/(.*)$ /public/$1 break; rewrite ^/public/(.*)$ /public/$1 break;