Skip to content

Commit

Permalink
feat(prod): disable mercure and vulcain
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Mar 10, 2024
1 parent 29b27ec commit 1da03ff
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions frankenphp/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
}

# https://caddyserver.com/docs/caddyfile/directives#sorting-algorithm
order mercure after encode
order vulcain after reverse_proxy
#order mercure after encode
#order vulcain after reverse_proxy
order php_server before file_server
}

Expand All @@ -29,22 +29,22 @@
root * /app/public
encode zstd br gzip

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
#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

{$CADDY_SERVER_EXTRA_DIRECTIVES}

Expand Down

0 comments on commit 1da03ff

Please sign in to comment.