-
Notifications
You must be signed in to change notification settings - Fork 50
/
Caddyfile
35 lines (31 loc) · 1.01 KB
/
Caddyfile
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
30
31
32
33
34
35
:4173 {
encode gzip
root * /usr/share/caddy
route {
try_files {path} /index.html
file_server browse
}
handle_path /api/* {
rewrite * /api{uri}
reverse_proxy :3000
}
header /service-worker.js {
Cache-Control max-age=0, no-cache, no-store, must-revalidate
}
header {
-Server
Content-Security-Policy default-src 'self'; base-uri 'self'; font-src 'self' https: data:; form-action 'self'; frame-ancestors 'self'; img-src 'self' data:; object-src 'none'; script-src 'self'; script-src-attr 'none'; style-src 'self' https: 'unsafe-inline'; upgrade-insecure-requests
Cross-Origin-Opener-Policy same-origin
Cross-Origin-Resource-Policy same-origin
Origin-Agent-Cluster ?1
Referrer-Policy no-referrer
Strict-Transport-Security max-age=15552000; includeSubDomains
X-Content-Type-Options nosniff
X-DNS-Prefetch-Control off
X-Download-Options noopen
X-Frame-Options SAMEORIGIN
X-Permitted-Cross-Domain-Policies none
-X-Powered-By
X-XSS-Protection 0
}
}