Create Flex endpoint

This commit is contained in:
github-action[bot]
2026-03-13 05:29:45 +00:00
commit d89f92b274
5 changed files with 260 additions and 0 deletions

27
index.json Normal file
View File

@@ -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"
}
}

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}
}