From 15533a8b6d6314cecfea6d451cc7f68c883c4750 Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Thu, 12 Mar 2026 15:01:21 +0000 Subject: [PATCH] Update Flex endpoint --- RECIPES.md | 2 +- ...9b46826acbf1a22f19fbb6c252d097e6cef9b.json | 80 +++++++++++++++++++ index.json | 3 +- symfony.mercure-bundle.0.4.json | 80 +++++++++++++++++++ 4 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 archived/symfony.mercure-bundle/44d9b46826acbf1a22f19fbb6c252d097e6cef9b.json create mode 100644 symfony.mercure-bundle.0.4.json diff --git a/RECIPES.md b/RECIPES.md index 0fc71551..3021f065 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -151,7 +151,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith | [symfony/mastodon-notifier](https://packagist.org/packages/symfony/mastodon-notifier) | [6.3](symfony/mastodon-notifier/6.3) | `mastodon-notifier`, `mastodonnotifier` | | [symfony/matrix-notifier](https://packagist.org/packages/symfony/matrix-notifier) | [7.3](symfony/matrix-notifier/7.3) | `matrix-notifier`, `matrixnotifier` | | [symfony/mattermost-notifier](https://packagist.org/packages/symfony/mattermost-notifier) | [5.1](symfony/mattermost-notifier/5.1) | `mattermost-notifier`, `mattermostnotifier` | -| [symfony/mercure-bundle](https://packagist.org/packages/symfony/mercure-bundle) | [0.3](symfony/mercure-bundle/0.3) | `mercure`, `mercure-bundle`, `mercurebundle` | +| [symfony/mercure-bundle](https://packagist.org/packages/symfony/mercure-bundle) | [0.4](symfony/mercure-bundle/0.4) | `mercure`, `mercure-bundle`, `mercurebundle` | | [symfony/mercure-notifier](https://packagist.org/packages/symfony/mercure-notifier) | [5.3](symfony/mercure-notifier/5.3) | `mercure-notifier`, `mercurenotifier` | | [symfony/message-bird-notifier](https://packagist.org/packages/symfony/message-bird-notifier) | [5.3](symfony/message-bird-notifier/5.3) | `message-bird-notifier`, `messagebirdnotifier` | | [symfony/message-media-notifier](https://packagist.org/packages/symfony/message-media-notifier) | [5.4](symfony/message-media-notifier/5.4) | `message-media-notifier`, `messagemedianotifier` | diff --git a/archived/symfony.mercure-bundle/44d9b46826acbf1a22f19fbb6c252d097e6cef9b.json b/archived/symfony.mercure-bundle/44d9b46826acbf1a22f19fbb6c252d097e6cef9b.json new file mode 100644 index 00000000..9b54f432 --- /dev/null +++ b/archived/symfony.mercure-bundle/44d9b46826acbf1a22f19fbb6c252d097e6cef9b.json @@ -0,0 +1,80 @@ +{ + "manifests": { + "symfony/mercure-bundle": { + "manifest": { + "bundles": { + "Symfony\\Bundle\\MercureBundle\\MercureBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "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://example.com/.well-known/mercure", + "#3": "The public URL of the Mercure hub, used by the browser to connect", + "MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure", + "#4": "The secret used to sign the JWTs", + "MERCURE_JWT_SECRET": "!ChangeThisMercureHubJWTSecretKey!" + }, + "docker-compose": { + "docker-compose.yml": { + "services": [ + "mercure:", + " image: dunglas/mercure", + " restart: unless-stopped", + " environment:", + " # Uncomment the following line to disable HTTPS,", + " #SERVER_NAME: ':80'", + " MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'", + " MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'", + " # 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/dev.Caddyfile", + " healthcheck:", + " test: [\"CMD\", \"curl\", \"-f\", \"https://localhost/healthz\"]", + " timeout: 5s", + " retries: 5", + " start_period: 60s", + " volumes:", + " - mercure_data:/data", + " - mercure_config:/config" + ], + "volumes": [ + "mercure_data:", + "mercure_config:" + ] + }, + "docker-compose.override.yml": { + "services": [ + "mercure:", + " ports:", + " - \"80\"" + ] + } + } + }, + "files": { + "config/packages/mercure.yaml": { + "contents": [ + "mercure:", + " hubs:", + " default:", + " url: '%env(default::MERCURE_URL)%'", + " public_url: '%env(MERCURE_PUBLIC_URL)%'", + " jwt:", + " secret: '%env(MERCURE_JWT_SECRET)%'", + " publish: '*'", + "" + ], + "executable": false + } + }, + "ref": "44d9b46826acbf1a22f19fbb6c252d097e6cef9b" + } + } +} diff --git a/index.json b/index.json index e10d1291..5affc02e 100644 --- a/index.json +++ b/index.json @@ -1175,7 +1175,8 @@ "symfony/mercure-bundle": [ "0.1", "0.2", - "0.3" + "0.3", + "0.4" ], "symfony/mercure-notifier": [ "5.3" diff --git a/symfony.mercure-bundle.0.4.json b/symfony.mercure-bundle.0.4.json new file mode 100644 index 00000000..9b54f432 --- /dev/null +++ b/symfony.mercure-bundle.0.4.json @@ -0,0 +1,80 @@ +{ + "manifests": { + "symfony/mercure-bundle": { + "manifest": { + "bundles": { + "Symfony\\Bundle\\MercureBundle\\MercureBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "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://example.com/.well-known/mercure", + "#3": "The public URL of the Mercure hub, used by the browser to connect", + "MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure", + "#4": "The secret used to sign the JWTs", + "MERCURE_JWT_SECRET": "!ChangeThisMercureHubJWTSecretKey!" + }, + "docker-compose": { + "docker-compose.yml": { + "services": [ + "mercure:", + " image: dunglas/mercure", + " restart: unless-stopped", + " environment:", + " # Uncomment the following line to disable HTTPS,", + " #SERVER_NAME: ':80'", + " MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'", + " MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'", + " # 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/dev.Caddyfile", + " healthcheck:", + " test: [\"CMD\", \"curl\", \"-f\", \"https://localhost/healthz\"]", + " timeout: 5s", + " retries: 5", + " start_period: 60s", + " volumes:", + " - mercure_data:/data", + " - mercure_config:/config" + ], + "volumes": [ + "mercure_data:", + "mercure_config:" + ] + }, + "docker-compose.override.yml": { + "services": [ + "mercure:", + " ports:", + " - \"80\"" + ] + } + } + }, + "files": { + "config/packages/mercure.yaml": { + "contents": [ + "mercure:", + " hubs:", + " default:", + " url: '%env(default::MERCURE_URL)%'", + " public_url: '%env(MERCURE_PUBLIC_URL)%'", + " jwt:", + " secret: '%env(MERCURE_JWT_SECRET)%'", + " publish: '*'", + "" + ], + "executable": false + } + }, + "ref": "44d9b46826acbf1a22f19fbb6c252d097e6cef9b" + } + } +}