update caddyfile

This commit is contained in:
2026-07-24 16:41:00 +01:00
parent 132cc91d06
commit 3b661a698e
+6
View File
@@ -7,9 +7,15 @@ atom.town {
root * /srv/home root * /srv/home
encode zstd encode zstd
# /index.html -> /
@indexhtml path_regexp idx ^(.*/)index\.html$
redir @indexhtml {re.idx.1} permanent
# /something.html -> /something
@html path_regexp strip ^(.+)\.html$ @html path_regexp strip ^(.+)\.html$
redir @html {re.strip.1} permanent redir @html {re.strip.1} permanent
# something -> something.html
try_files {path} {path}.html {path}/index.html try_files {path} {path}.html {path}/index.html
file_server file_server