Skip to content

Commit

Permalink
fix: Also add Nginx rewrite for sw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowRZ committed Sep 7, 2024
1 parent 63e4eb7 commit 835b070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/nginx/cinny.domain.tld.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ server {
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;
Expand Down
1 change: 1 addition & 0 deletions docker-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ server {
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;
Expand Down

0 comments on commit 835b070

Please sign in to comment.