Skip to content

Commit

Permalink
fix: do not handle requests to Mercure as PHP routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkosun committed Nov 16, 2024
1 parent ba94f06 commit ebd2931
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frankenphp/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@
# Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics
header ?Permissions-Policy "browsing-topics=()"

@phpRoute not file {path}
@phpRoute {
not file {path}
not path /.well-known/mercure
}
rewrite @phpRoute index.php

@frontController path index.php
php @frontController

file_server
}

0 comments on commit ebd2931

Please sign in to comment.