Skip to content

Commit

Permalink
perf: improve FrankenPHP config
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored and maxhelias committed Nov 16, 2024
1 parent 102fa40 commit 1f3ea50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frankenphp/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
}

root * /app/public
root /app/public
encode zstd br gzip

mercure {
Expand All @@ -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
}

0 comments on commit 1f3ea50

Please sign in to comment.