-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
29 lines (28 loc) · 1 KB
/
Copy pathCaddyfile
File metadata and controls
29 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
admin off
auto_https off
persist_config off
}
:{$PORT:8080} {
root * /srv
route {
header {
Cache-Control "public, max-age=0, must-revalidate"
Content-Security-Policy "default-src 'none'; base-uri 'none'; connect-src 'none'; font-src 'self'; form-action 'none'; frame-ancestors 'none'; frame-src 'none'; img-src 'self'; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self'; style-src 'self'; worker-src 'self'"
Permissions-Policy "accelerometer=(), autoplay=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
Referrer-Policy "no-referrer"
Strict-Transport-Security "max-age=86400"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
}
header -Server
@staging expression `"{$SITE_MODE:staging}" != "production"`
header @staging {
Cache-Control "no-store"
X-Robots-Tag "noindex, nofollow"
}
respond /healthz "ok" 200
encode zstd gzip
file_server
}
}