about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Caddyfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Caddyfile b/Caddyfile
index f06dbce..ff6b07d 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -21,7 +21,12 @@ http://,
 http://alanpearce.uk,
 http://www.alanpearce.uk,
 http://www.alanpearce.eu {
-	header Cache-Control max-age=31536000
+	header {
+		Cache-Control max-age=31536000
+		X-Content-Type-Options nosniff
+		Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
+		Content-Security-Policy "default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'"
+	}
 	redir https://alanpearce.eu{uri} permanent
 }