diff --git a/.github/docker/Caddyfile b/.github/docker/Caddyfile index 3ac87b587..9d16e2982 100644 --- a/.github/docker/Caddyfile +++ b/.github/docker/Caddyfile @@ -17,14 +17,5 @@ trusted_proxies 172.20.0.0/16 } - @startsWithDot { - path \/\. - not path .well-known - } - rewrite @startsWithDot /index.php{uri} - - @phpRewrite { - not file favicon.ico - } - try_files @phpRewrite {path} {path}/ /index.php?{query} + try_files {path} {path}/ /index.php?{query} } diff --git a/flake.nix b/flake.nix index e046b16b5..6cd595c4e 100644 --- a/flake.nix +++ b/flake.nix @@ -80,16 +80,7 @@ php_fastcgi localhost:9000 - @startsWithDot { - path \/\. - not path .well-known - } - rewrite @startsWithDot /index.php{uri} - - @phpRewrite { - not file favicon.ico - } - try_files @phpRewrite {path} {path}/ /index.php?{query} + try_files {path} {path}/ /index.php?{query} } '';