Private
Public Access
33 lines
502 B
Caddyfile
33 lines
502 B
Caddyfile
{
|
|
{$CADDY_GLOBAL_OPTIONS}
|
|
|
|
frankenphp {
|
|
{$FRANKENPHP_CONFIG}
|
|
}
|
|
}
|
|
|
|
{$SERVER_NAME:localhost} {
|
|
log
|
|
|
|
root * /app/public
|
|
|
|
encode zstd br gzip
|
|
|
|
# Forward scheme information to the PHP application
|
|
header X-Forwarded-Proto {scheme}
|
|
header X-Forwarded-Host {host}
|
|
|
|
mercure {
|
|
transport bolt {
|
|
path /data/mercure.db
|
|
}
|
|
protocol_version_compatibility 8
|
|
publisher_jwt {$MERCURE_JWT_SECRET} HS256
|
|
subscriber_jwt {$MERCURE_JWT_SECRET} HS256
|
|
anonymous
|
|
subscriptions
|
|
}
|
|
|
|
php_server
|
|
}
|