all repos — website @ b4dc3bd51b45d1343cdf486e4cb54e5e92295534

My website

Add listener for www
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2023 10:56:17 +0200
commit

b4dc3bd51b45d1343cdf486e4cb54e5e92295534

parent

6de7a0c56149801542a5837283bc6b4aac64623f

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CaddyfileCaddyfile
@@ -8,6 +8,11 @@ :9091 { 	metrics
 }
 
+http://www.alanpearce.eu {
+	header Cache-Control max-age=31536000
+	redir https://alanpearce.eu{uri}
+}
+
 http://alanpearce.eu {
 	root * {$SITE_ROOT}
 	file_server {