-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathCaddyfile
More file actions
24 lines (17 loc) · 841 Bytes
/
Caddyfile
File metadata and controls
24 lines (17 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{$DOMAIN:http://localhost} {
log
encode zstd gzip
header *.wasm Content-Type "application/wasm"
rewrite /update-worker.js /ui-update-worker.js
root * /site
try_files {path} /index.html
file_server
# Cache responses for 1 minute (local)/1h (CDN - invalidated on deploy), validate async during the next 10
# minutes, or continue using old data as-is for up to 24 hours if this server stops responding/returns errors.
@get method GET
header @get Cache-Control "public, max-age=60, s-maxage=3600, stale-while-revalidate=600, stale-if-error=86400"
header Referrer-Policy "strict-origin"
header X-Clacks-Overhead "GNU Terry Pratchett" # https://xclacksoverhead.org
import /site/csp-report.caddyfile # Generated by webpack
import /site/csp-strict.caddyfile # Generated by webpack
}