summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-07-01 10:56:17 +0200
committerAlan Pearce2023-07-01 10:56:17 +0200
commitb4dc3bd51b45d1343cdf486e4cb54e5e92295534 (patch)
treeb77adaace59b62ceaeea403b1f17a6033b60def4
parent6de7a0c56149801542a5837283bc6b4aac64623f (diff)
downloadwebsite-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.tar.lz
website-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.tar.zst
website-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.zip
Add listener for www
-rw-r--r--Caddyfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index f69b86c..576a1d0 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -8,6 +8,11 @@
 	metrics
 }
 
+http://www.alanpearce.eu {
+	header Cache-Control max-age=31536000
+	redir https://alanpearce.eu{uri}
+}
+
 http://alanpearce.eu {
 	root * {$SITE_ROOT}
 	file_server {