update caddyfile

This commit is contained in:
2026-07-24 16:31:15 +01:00
parent 0fbe068197
commit 132cc91d06
+7 -1
View File
@@ -5,9 +5,15 @@
atom.town { atom.town {
root * /srv/home root * /srv/home
file_server
encode zstd 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/* @assets path /assets/*
header @assets Cache-Control "public, max-age=604800, immutable" header @assets Cache-Control "public, max-age=604800, immutable"
} }