From 132cc91d0618b97125c944387f1d631545c14f4e Mon Sep 17 00:00:00 2001 From: futile Date: Fri, 24 Jul 2026 16:31:15 +0100 Subject: [PATCH] update caddyfile --- Caddyfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 5eb1148..cf21867 100644 --- a/Caddyfile +++ b/Caddyfile @@ -5,9 +5,15 @@ atom.town { root * /srv/home - file_server encode zstd + @html path_regexp strip ^(.+)\.html$ + redir @html {re.strip.1} permanent + + try_files {path} {path}.html {path}/index.html + + file_server + @assets path /assets/* header @assets Cache-Control "public, max-age=604800, immutable" }