-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
43 lines (34 loc) · 1.37 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
38
39
40
41
42
43
citizenalpha.de {
root * /srv/citizenalpha.de/www/htdocs
templates
encode zstd gzip
file_server
header {
Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'strict-dynamic' 'nonce-{http.request.uuid}'; frame-src https://offen.citizenalpha.de; form-action 'none'; object-src 'none'; frame-ancestors 'none'; base-uri 'none';"
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Referrer-Policy strict-origin-when-cross-origin
X-Content-Type-Options nosniff
X-Frame-Options DENY
}
@only-assets {
not path /*.html /sitemap*
}
header @only-assets Cache-Control "public, max-age=604800"
}
offen.citizenalpha.de {
reverse_proxy http://offen:4000
encode zstd gzip
header {
Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; form-action 'none'; object-src 'none'; frame-ancestors 'self' https:; base-uri 'none';"
>Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
>Referrer-Policy strict-origin-when-cross-origin
>X-Content-Type-Options nosniff
X-Frame-Options DENY
Access-Control-Allow-Origin "*"
}
header /script.js >Cache-Control "public, max-age=172800"
}
lynx.citizenalpha.de {
reverse_proxy http://lynx:4000
header >Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
}