From 8335d684500749e06eaeacda56aff80cd7b4f6d6 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 4 Oct 2019 18:42:50 +0530 Subject: [PATCH] Add Caddyfile for local testing Helpful to be able to replicate my production setup for Lighthouse testing. Signed-off-by: Harsh Shandilya --- Caddyfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..f03b99f --- /dev/null +++ b/Caddyfile @@ -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" + } +}