From 1f3ea50cffd03aff1f67a2780f587da39a92df04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sat, 16 Nov 2024 10:59:22 +0100 Subject: [PATCH] perf: improve FrankenPHP config --- frankenphp/Caddyfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frankenphp/Caddyfile b/frankenphp/Caddyfile index fc3dda5..997774b 100644 --- a/frankenphp/Caddyfile +++ b/frankenphp/Caddyfile @@ -19,7 +19,7 @@ } } - root * /app/public + root /app/public encode zstd br gzip mercure { @@ -44,5 +44,9 @@ # Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics header ?Permissions-Policy "browsing-topics=()" - php_server + @phpRoute not file {path} + rewrite @phpRoute index.php + @frontController path index.php + php @frontController + file_server }