diff --git a/roles/docker/templates/Caddyfile.j2 b/roles/docker/templates/Caddyfile.j2 index 532a368..4b59701 100644 --- a/roles/docker/templates/Caddyfile.j2 +++ b/roles/docker/templates/Caddyfile.j2 @@ -104,7 +104,9 @@ gotify-assistant.thesatelliteoflove.com { pdg.thesatelliteoflove.com { import hsts root * /srv/pdg - try_files {path} {path}.html {path}/ =404 + # "{path}/" keeps the /dir -> /dir/ redirect; "{path}/index.html" is + # needed for "/" itself, which "{path}/" never matches in Caddy 2.11. + try_files {path} {path}.html {path}/ {path}/index.html =404 file_server encode gzip