feat: synchronize with API Platform's definition (#113)

This commit is contained in:
Kévin Dunglas
2021-02-09 10:42:17 +01:00
committed by GitHub
parent 235f6f8edc
commit d6f3e7653f
7 changed files with 79 additions and 38 deletions

View File

@@ -1,4 +1,7 @@
{
# Debug
{$DEBUG}
# HTTP/3 support
servers {
protocol {
experimental_http3
@@ -14,21 +17,21 @@ route {
root * /srv/app/public
mercure {
# Transport to use (default to Bolt)
transport_url bolt:///data/mercure.db
# Enable the demo endpoint (disable it in production!)
{$MERCURE_DEMO}
transport_url {$MERCURE_TRANSPORT_URL:bolt:///data/mercure.db}
# Publisher JWT key
publisher_jwt {$MERCURE_PUBLISHER_JWT}
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG}
# Subscriber JWT key
subscriber_jwt {$MERCURE_SUBSCRIBER_JWT}
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
push
php_fastcgi php:9000
encode gzip
php_fastcgi unix//var/run/php/php-fpm.sock
encode zstd gzip
file_server
}

View File

@@ -5,7 +5,7 @@ export SCRIPT_NAME=/ping
export SCRIPT_FILENAME=/ping
export REQUEST_METHOD=GET
if cgi-fcgi -bind -connect 127.0.0.1:9000; then
if cgi-fcgi -bind -connect /var/run/php/php-fpm.sock; then
exit 0
fi

View File

@@ -0,0 +1,7 @@
[global]
daemonize = no
[www]
listen = /var/run/php/php-fpm.sock
listen.mode = 0666
ping.path = /ping