Simplify the MercureBundle recipe

This commit is contained in:
Teoh Han Hui
2019-08-23 15:31:34 +02:00
parent 91d788e7f9
commit 9a5825247d
2 changed files with 3 additions and 6 deletions
@@ -2,4 +2,4 @@ mercure:
hubs:
default:
url: '%env(MERCURE_PUBLISH_URL)%'
jwt: '%env(MERCURE_JWT_SECRET)%'
jwt: '%env(MERCURE_JWT_TOKEN)%'
+2 -5
View File
@@ -5,14 +5,11 @@
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"container": {
"env(MERCURE_PUBLISH_URL)": "",
"env(MERCURE_JWT_SECRET)": ""
},
"env": {
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
"MERCURE_PUBLISH_URL": "http://mercure/hub",
"MERCURE_JWT_SECRET": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0"
"#2": "The default token is signed with the secret key: !ChangeMe!",
"MERCURE_JWT_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0"
},
"docker-compose": {
"services": [