37 lines
840 B
Caddyfile
37 lines
840 B
Caddyfile
|
|
# php-qml framework skeleton — FrankenPHP / Caddy / Mercure config (dev mode).
|
||
|
|
#
|
||
|
|
# Run from the skeleton/symfony/ directory so relative `php_server` paths
|
||
|
|
# resolve correctly: cd framework/skeleton/symfony && frankenphp run --watch
|
||
|
|
# --config ../Caddyfile.
|
||
|
|
|
||
|
|
{
|
||
|
|
auto_https off
|
||
|
|
admin off
|
||
|
|
frankenphp
|
||
|
|
order php_server before respond
|
||
|
|
order mercure after encode
|
||
|
|
}
|
||
|
|
|
||
|
|
http://127.0.0.1:8765 {
|
||
|
|
root * public/
|
||
|
|
encode gzip
|
||
|
|
|
||
|
|
mercure {
|
||
|
|
transport local
|
||
|
|
# Must match MERCURE_JWT_SECRET in symfony/.env. lcobucci/jwt
|
||
|
|
# requires >= 256 bits, hence the long dev value.
|
||
|
|
publisher_jwt dev_php_qml_bridge_jwt_secret_at_least_256_bits_long_for_lcobucci
|
||
|
|
subscriber_jwt dev_php_qml_bridge_jwt_secret_at_least_256_bits_long_for_lcobucci
|
||
|
|
anonymous
|
||
|
|
publish_origins *
|
||
|
|
cors_origins *
|
||
|
|
}
|
||
|
|
|
||
|
|
php_server
|
||
|
|
|
||
|
|
log {
|
||
|
|
output stderr
|
||
|
|
format console
|
||
|
|
}
|
||
|
|
}
|