Skip to content

Commit 6f66253

Browse files
docs: update the environment variables used for Mercure (#1432)
1 parent 225930c commit 6f66253

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/mercure.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Then, install the Symfony bundle:
2525
composer require symfony/mercure-bundle
2626
```
2727

28-
Finally, 3 environment variables [must be set](https://symfony.com/doc/current/configuration/external_parameters.html):
28+
Finally, 3 environment variables [must be set](https://symfony.com/doc/current/configuration.html#configuration-based-on-environment-variables):
2929

30-
* `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)
31-
* `MERCURE_SUBSCRIBE_URL`: the **public** URL of the Mercure hub that clients will use to subscribe to updates
32-
* `MERCURE_JWT_TOKEN`: a valid Mercure [JSON Web Token (JWT)](https://jwt.io/) allowing API Platform to publish updates to the hub
30+
* `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)
31+
* `MERCURE_PUBLIC_URL`: the **public** URL of the Mercure hub that clients will use to subscribe to updates
32+
* `MERCURE_JWT_SECRET`: a valid Mercure [JSON Web Token (JWT)](https://jwt.io/) allowing API Platform to publish updates to the hub
3333

3434
The JWT **must** contain a `mercure.publish` property containing an array of topic selectors.
3535
This array can be empty to allow publishing anonymous updates only. It can also be `["*"]` to allow publishing on every topics.

0 commit comments

Comments
 (0)