diff --git a/core/mercure.md b/core/mercure.md index 75514f57abf..826c49c63f7 100644 --- a/core/mercure.md +++ b/core/mercure.md @@ -25,11 +25,11 @@ Then, install the Symfony bundle: composer require symfony/mercure-bundle ``` -Finally, 3 environment variables [must be set](https://symfony.com/doc/current/configuration/external_parameters.html): +Finally, 3 environment variables [must be set](https://symfony.com/doc/current/configuration.html#configuration-based-on-environment-variables): -* `MERCURE_PUBLISH_URL`: the URL that must be used by API Platform to publish updates to your Mercure hub (can be an internal or a public URL) -* `MERCURE_SUBSCRIBE_URL`: the **public** URL of the Mercure hub that clients will use to subscribe to updates -* `MERCURE_JWT_TOKEN`: a valid Mercure [JSON Web Token (JWT)](https://jwt.io/) allowing API Platform to publish updates to the hub +* `MERCURE_URL`: the URL that must be used by API Platform to publish updates to your Mercure hub (can be an internal or a public URL) +* `MERCURE_PUBLIC_URL`: the **public** URL of the Mercure hub that clients will use to subscribe to updates +* `MERCURE_JWT_SECRET`: a valid Mercure [JSON Web Token (JWT)](https://jwt.io/) allowing API Platform to publish updates to the hub The JWT **must** contain a `mercure.publish` property containing an array of topic selectors. This array can be empty to allow publishing anonymous updates only. It can also be `["*"]` to allow publishing on every topics.