From 7aab53c4209a5798ed5812e90057f221e6ea7923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 26 Oct 2018 15:46:21 +0200 Subject: [PATCH 1/2] Add MercureBundle recipe --- .../0.1/config/packages/mercure.yaml | 5 +++++ symfony/mercure-bundle/0.1/manifest.json | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 symfony/mercure-bundle/0.1/config/packages/mercure.yaml create mode 100644 symfony/mercure-bundle/0.1/manifest.json diff --git a/symfony/mercure-bundle/0.1/config/packages/mercure.yaml b/symfony/mercure-bundle/0.1/config/packages/mercure.yaml new file mode 100644 index 00000000..102f15e8 --- /dev/null +++ b/symfony/mercure-bundle/0.1/config/packages/mercure.yaml @@ -0,0 +1,5 @@ +mercure: + hubs: + default: + url: '%env(MERCURE_PUBLISH_URL)%' + jwt: '%env(MERCURE_JWT)%' diff --git a/symfony/mercure-bundle/0.1/manifest.json b/symfony/mercure-bundle/0.1/manifest.json new file mode 100644 index 00000000..c8c68c91 --- /dev/null +++ b/symfony/mercure-bundle/0.1/manifest.json @@ -0,0 +1,17 @@ +{ + "bundles": { + "Symfony\\Bundle\\MercureBundle\\MercureBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "container": { + "env(MERCURE_PUBLISH_URL)": "", + "env(MERCURE_JWT)": "" + }, + "env": { + "MERCURE_PUBLISH_URL": "https://demo.mercure.rocks/hub", + "MERCURE_JWT": "your.JWT.token" + }, + "aliases": ["mercure"] +} From 908e6c1175764bc63953bccca9add5d466b88613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 30 Nov 2018 16:16:38 +0100 Subject: [PATCH 2/2] Suffit env var by _SECRET --- symfony/mercure-bundle/0.1/config/packages/mercure.yaml | 2 +- symfony/mercure-bundle/0.1/manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/symfony/mercure-bundle/0.1/config/packages/mercure.yaml b/symfony/mercure-bundle/0.1/config/packages/mercure.yaml index 102f15e8..0bdbc755 100644 --- a/symfony/mercure-bundle/0.1/config/packages/mercure.yaml +++ b/symfony/mercure-bundle/0.1/config/packages/mercure.yaml @@ -2,4 +2,4 @@ mercure: hubs: default: url: '%env(MERCURE_PUBLISH_URL)%' - jwt: '%env(MERCURE_JWT)%' + jwt: '%env(MERCURE_JWT_SECRET)%' diff --git a/symfony/mercure-bundle/0.1/manifest.json b/symfony/mercure-bundle/0.1/manifest.json index c8c68c91..469bbaf3 100644 --- a/symfony/mercure-bundle/0.1/manifest.json +++ b/symfony/mercure-bundle/0.1/manifest.json @@ -7,11 +7,11 @@ }, "container": { "env(MERCURE_PUBLISH_URL)": "", - "env(MERCURE_JWT)": "" + "env(MERCURE_JWT_SECRET)": "" }, "env": { "MERCURE_PUBLISH_URL": "https://demo.mercure.rocks/hub", - "MERCURE_JWT": "your.JWT.token" + "MERCURE_JWT_SECRET": "#see https://mercure.rocks" }, "aliases": ["mercure"] }