Skip to content

Commit 1f3ea50

Browse files
dunglasmaxhelias
authored andcommitted
perf: improve FrankenPHP config
1 parent 102fa40 commit 1f3ea50

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frankenphp/Caddyfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
}
2121

22-
root * /app/public
22+
root /app/public
2323
encode zstd br gzip
2424

2525
mercure {
@@ -44,5 +44,9 @@
4444
# Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics
4545
header ?Permissions-Policy "browsing-topics=()"
4646

47-
php_server
47+
@phpRoute not file {path}
48+
rewrite @phpRoute index.php
49+
@frontController path index.php
50+
php @frontController
51+
file_server
4852
}

0 commit comments

Comments
 (0)