From 559b2a68244b4c10d7f39a5bb0dddcbac7ce031a Mon Sep 17 00:00:00 2001 From: github-action bot <> Date: Wed, 13 Oct 2021 11:30:59 +0000 Subject: [PATCH] Update Flex endpoint --- symfony.mercure-bundle.0.3.json | 38 ++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/symfony.mercure-bundle.0.3.json b/symfony.mercure-bundle.0.3.json index 96650201..97d43635 100644 --- a/symfony.mercure-bundle.0.3.json +++ b/symfony.mercure-bundle.0.3.json @@ -13,11 +13,43 @@ "env": { "#1": "See https://symfony.com/doc/current/mercure.html#configuration", "#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)", - "MERCURE_URL": "https://127.0.0.1:8000/.well-known/mercure", + "MERCURE_URL": "https://example.com/.well-known/mercure", "#3": "The public URL of the Mercure hub, used by the browser to connect", - "MERCURE_PUBLIC_URL": "https://127.0.0.1:8000/.well-known/mercure", + "MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure", "#4": "The secret used to sign the JWTs", "MERCURE_JWT_SECRET": "!ChangeMe!" + }, + "docker-compose": { + "docker-compose.yml": { + "services": [ + "mercure:", + " image: dunglas/mercure", + " restart: unless-stopped", + " environment:", + " SERVER_NAME: ':80'", + " MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'", + " MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'", + " # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive", + " MERCURE_EXTRA_DIRECTIVES: |", + " cors_origins http://127.0.0.1:8000", + " # Comment the following line to disable the development mode", + " command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev", + " volumes:", + " - mercure_data:/data", + " - mercure_config:/config" + ], + "volumes": [ + "mercure_data:", + "mercure_config:" + ] + }, + "docker-compose.override.yml": { + "services": [ + "mercure:", + " ports:", + " - \"80\"" + ] + } } }, "files": { @@ -36,7 +68,7 @@ "executable": false } }, - "ref": "d1cdff3ae53bf6a5cbfb088c82f26032bdc14cc3" + "ref": "e0a854b5439186e04b28fb8887b42c54f24a0d32" } } }