diff options
author | Alan Pearce | 2023-07-01 10:56:17 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-01 10:56:17 +0200 |
commit | b4dc3bd51b45d1343cdf486e4cb54e5e92295534 (patch) | |
tree | b77adaace59b62ceaeea403b1f17a6033b60def4 /Caddyfile | |
parent | 6de7a0c56149801542a5837283bc6b4aac64623f (diff) | |
download | website-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.tar.lz website-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.tar.zst website-b4dc3bd51b45d1343cdf486e4cb54e5e92295534.zip |
Add listener for www
Diffstat (limited to 'Caddyfile')
-rw-r--r-- | Caddyfile | 5 |
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 { |