fix: do not handle requests to Mercure as PHP routes (#696)
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
This commit is contained in:
parent
12944cb6d5
commit
d572404fa3
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -45,6 +45,9 @@ jobs:
|
||||
name: Check HTTPS reachability
|
||||
if: false # Remove this line when the homepage will be configured, or change the path to check
|
||||
run: curl -vk --fail-with-body https://localhost
|
||||
-
|
||||
name: Check Mercure reachability
|
||||
run: curl -vkI --fail-with-body https://localhost/.well-known/mercure?topic=test
|
||||
-
|
||||
name: Create test database
|
||||
if: false # Remove this line if Doctrine ORM is installed
|
||||
|
@ -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 path /.well-known/mercure*
|
||||
not file {path}
|
||||
}
|
||||
rewrite @phpRoute index.php
|
||||
|
||||
@frontController path index.php
|
||||
php @frontController
|
||||
|
||||
file_server
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user