Skip to content

Commit

Permalink
Clean up service worker Caddy rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Edwards committed May 8, 2024
1 parent d6a933c commit accf2ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Crypter.Web/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
level DEBUG
}

rewrite /serviceWorker /srv/js/dist/serviceWorker

handle /api/* {
request_body {
max_size {$CADDY_MAX_REQUEST_BODY}
Expand All @@ -27,10 +25,8 @@
reverse_proxy {$CRYPTER_API_BASE}
}

handle /srv/js/dist/serviceWorker {
root * /srv/js/dist/serviceWorker

try_files {path} /serviceWorker.js
handle /serviceWorker {
rewrite * /srv/js/dist/serviceWorker/serviceWorker.js

file_server {
precompressed br gzip
Expand Down

0 comments on commit accf2ed

Please sign in to comment.