Add Caddyfile for local testing

Helpful to be able to replicate my production setup for Lighthouse testing.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-10-04 18:42:50 +05:30
parent c9f71d5139
commit f83c67aac8
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 17 additions and 0 deletions

17
Caddyfile Normal file
View File

@ -0,0 +1,17 @@
:1313 {
tls off
header / {
# Security related changes stolen from https://github.com/searx/searx-docker/blob/master/Caddyfile
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Feature-Policy "accelerometer 'none';ambient-light-sensor 'none'; autoplay 'none';camera 'none';encrypted-media 'none'; geolocation 'none';gyroscope 'none';magnetometer 'none';microphone 'none';midi 'none';payment 'none';picture-in-picture 'none'; speaker 'none';sync-xhr 'none';usb 'none';vr 'none'"
Referrer-Policy "no-referrer"
}
gzip
root public
header / {
Cache-Control "max-age=2592000"
}
}