-
Notifications
You must be signed in to change notification settings - Fork 48
/
Caddyfile
37 lines (33 loc) · 1.09 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
36
37
localhost {
encode gzip
root * /usr/share/caddy
route {
try_files {path} /index.html
file_server browse
}
handle_path /api/* {
rewrite * /api{uri}
reverse_proxy 192.168.100.202: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-Embedder-Policy require-corp
Cross-Origin-Opener-Policy same-origin
Cross-Origin-Resource-Policy same-origin
Expect-CT max-age=0
Referrer-Policy no-referrer
Strict-Transport-Security max-age=15552000; includeSubDomains
X-Content-Type-Options nosniff
Origin-Agent-Cluster ?1
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
}
}