33 lines
838 B
Caddyfile
33 lines
838 B
Caddyfile
|
{
|
||
|
# Debug
|
||
|
{$CADDY_DEBUG}
|
||
|
}
|
||
|
|
||
|
{$SERVER_NAME}
|
||
|
|
||
|
{$CADDY_EXTRA_CONFIG}
|
||
|
|
||
|
log
|
||
|
|
||
|
route {
|
||
|
root * /srv/app/public
|
||
|
mercure {
|
||
|
# Transport to use (default to Bolt)
|
||
|
transport_url {$MERCURE_TRANSPORT_URL:bolt:///data/mercure.db}
|
||
|
# Publisher JWT key
|
||
|
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG}
|
||
|
# Subscriber JWT key
|
||
|
subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} {env.MERCURE_SUBSCRIBER_JWT_ALG}
|
||
|
# Allow anonymous subscribers (double-check that it's what you want)
|
||
|
anonymous
|
||
|
# Enable the subscription API (double-check that it's what you want)
|
||
|
subscriptions
|
||
|
# Extra directives
|
||
|
{$MERCURE_EXTRA_DIRECTIVES}
|
||
|
}
|
||
|
vulcain
|
||
|
php_fastcgi unix//var/run/php/php-fpm.sock
|
||
|
encode zstd gzip
|
||
|
file_server
|
||
|
}
|