commit d89f92b27456b1fad329f7c45d0efc7ff19baca5 Author: github-action[bot] <> Date: Fri Mar 13 05:29:45 2026 +0000 Create Flex endpoint diff --git a/index.json b/index.json new file mode 100644 index 00000000..9996e426 --- /dev/null +++ b/index.json @@ -0,0 +1,27 @@ +{ + "aliases": { + "mercure": "symfony/mercure-bundle", + "mercure-bundle": "symfony/mercure-bundle", + "mercurebundle": "symfony/mercure-bundle" + }, + "recipes": { + "symfony/mercure-bundle": [ + "0.1", + "0.2", + "0.3", + "0.4" + ] + }, + "recipe-conflicts": [], + "versions": [], + "branch": "main", + "is_contrib": false, + "_links": { + "repository": "github.com/symfony/recipes", + "origin_template": "{package}:{version}@github.com/symfony/recipes:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1520/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1520/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} diff --git a/symfony.mercure-bundle.0.1.json b/symfony.mercure-bundle.0.1.json new file mode 100644 index 00000000..07ef8744 --- /dev/null +++ b/symfony.mercure-bundle.0.1.json @@ -0,0 +1,36 @@ +{ + "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", + "MERCURE_PUBLISH_URL": "http://mercure/.well-known/mercure", + "#2": "The default token is signed with the secret key: !ChangeMe!", + "MERCURE_JWT_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0" + } + }, + "files": { + "config/packages/mercure.yaml": { + "contents": [ + "mercure:", + " hubs:", + " default:", + " url: '%env(MERCURE_PUBLISH_URL)%'", + " jwt: '%env(MERCURE_JWT_TOKEN)%'", + "" + ], + "executable": false + } + }, + "ref": "d625f7454ed4a398a7c11606b3cab82f77c885d3" + } + } +} diff --git a/symfony.mercure-bundle.0.2.json b/symfony.mercure-bundle.0.2.json new file mode 100644 index 00000000..2a4f91e2 --- /dev/null +++ b/symfony.mercure-bundle.0.2.json @@ -0,0 +1,37 @@ +{ + "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", + "MERCURE_PUBLISH_URL": "http://mercure/.well-known/mercure", + "#2": "The default token is signed with the secret key: !ChangeMe!", + "MERCURE_JWT_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0" + } + }, + "files": { + "config/packages/mercure.yaml": { + "contents": [ + "mercure:", + " enable_profiler: '%kernel.debug%'", + " hubs:", + " default:", + " url: '%env(MERCURE_PUBLISH_URL)%'", + " jwt: '%env(MERCURE_JWT_TOKEN)%'", + "" + ], + "executable": false + } + }, + "ref": "9c94631c3fc2e9ab2302380ebb36b5942f5be676" + } + } +} diff --git a/symfony.mercure-bundle.0.3.json b/symfony.mercure-bundle.0.3.json new file mode 100644 index 00000000..97a3aeaf --- /dev/null +++ b/symfony.mercure-bundle.0.3.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(MERCURE_URL)%'", + " public_url: '%env(default::MERCURE_PUBLIC_URL)%'", + " jwt:", + " secret: '%env(MERCURE_JWT_SECRET)%'", + " publish: '*'", + "" + ], + "executable": false + } + }, + "ref": "b682842d20a2e512913e3542c927b371d9ec1962" + } + } +} diff --git a/symfony.mercure-bundle.0.4.json b/symfony.mercure-bundle.0.4.json new file mode 100644 index 00000000..34e60b4c --- /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(default::MERCURE_PUBLIC_URL)%'", + " jwt:", + " secret: '%env(MERCURE_JWT_SECRET)%'", + " publish: '*'", + "" + ], + "executable": false + } + }, + "ref": "b141b8c8f13bc8c31d718a5488039b712c0d3592" + } + } +}