2026-05-02 17:00:13 +02:00
|
|
|
# php-qml — Todo example — FrankenPHP / Caddy / Mercure config.
|
2026-05-02 15:22:36 +02:00
|
|
|
#
|
2026-05-02 17:00:13 +02:00
|
|
|
# Works in both run modes:
|
|
|
|
|
# - dev mode → env unset, defaults below match symfony/.env
|
|
|
|
|
# - bundled mode → BackendConnection sets PORT and MERCURE_*_JWT_KEY
|
|
|
|
|
# before launching FrankenPHP.
|
2026-05-02 15:22:36 +02:00
|
|
|
{
|
|
|
|
|
auto_https off
|
|
|
|
|
admin off
|
|
|
|
|
frankenphp
|
|
|
|
|
order php_server before respond
|
|
|
|
|
order mercure after encode
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-02 17:00:13 +02:00
|
|
|
http://127.0.0.1:{$PORT:8765} {
|
2026-05-02 15:22:36 +02:00
|
|
|
root * public/
|
|
|
|
|
encode gzip
|
|
|
|
|
|
|
|
|
|
mercure {
|
|
|
|
|
transport local
|
2026-05-02 17:00:13 +02:00
|
|
|
publisher_jwt {$MERCURE_PUBLISHER_JWT_KEY:dev_php_qml_bridge_jwt_secret_at_least_256_bits_long_for_lcobucci}
|
|
|
|
|
subscriber_jwt {$MERCURE_SUBSCRIBER_JWT_KEY:dev_php_qml_bridge_jwt_secret_at_least_256_bits_long_for_lcobucci}
|
2026-05-02 15:22:36 +02:00
|
|
|
anonymous
|
|
|
|
|
publish_origins *
|
|
|
|
|
cors_origins *
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
php_server
|
|
|
|
|
|
|
|
|
|
log {
|
|
|
|
|
output stderr
|
|
|
|
|
format console
|
|
|
|
|
}
|
|
|
|
|
}
|