mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 04:27:01 +05:30
Caddyfile: Setup CSP reporting
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
15bd2591e2
commit
137cf4cca5
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
||||||
dns cloudflare
|
dns cloudflare
|
||||||
}
|
}
|
||||||
header / {
|
header / {
|
||||||
|
Content-Security-Policy "
|
||||||
|
report-uri https://msfjarvis.report-uri.com/r/d/csp/reportOnly;
|
||||||
|
"
|
||||||
# Security related changes stolen from https://github.com/searx/searx-docker/blob/master/Caddyfile
|
# Security related changes stolen from https://github.com/searx/searx-docker/blob/master/Caddyfile
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
X-XSS-Protection "1; mode=block"
|
X-XSS-Protection "1; mode=block"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue