mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-12-28 02:16:17 +00:00
c6a8fb1117
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run
* chore: Bump matrix-js-sdk to 34.4.0 * feat: Authenticated media support * chore: Use Vite PWA for service worker support * fix: Fix Vite PWA SW entry point Forget this. :P * fix: Also add Nginx rewrite for sw.js * fix: Correct Nginx rewrite * fix: Add Netlify redirect for sw.js Otherwise the generic SPA rewrite to index.html would take effect, breaking Service Worker. * fix: Account for subpath when regisering service worker * chore: Correct types
21 lines
461 B
Plaintext
21 lines
461 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
|
|
rewrite ^/config.json$ /config.json break;
|
|
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;
|
|
rewrite ^/assets/(.*)$ /assets/$1 break;
|
|
|
|
rewrite ^(.+)$ /index.html break;
|
|
}
|
|
}
|