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" }