Skip to content

Commit 83da6a1

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #918
2 parents 8c764fd + 8bb01ef commit 83da6a1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
mercure:
2+
hubs:
3+
default:
4+
url: '%env(MERCURE_URL)%'
5+
public_url: '%env(MERCURE_PUBLIC_URL)%'
6+
jwt:
7+
secret: '%env(MERCURE_JWT_SECRET)%'
8+
publish: '*'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bundles": {
3+
"Symfony\\Bundle\\MercureBundle\\MercureBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"env": {
9+
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
10+
"#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)",
11+
"MERCURE_URL": "https://127.0.0.1:8000/.well-known/mercure",
12+
"#3": "The public URL of the Mercure hub, used by the browser to connect",
13+
"MERCURE_PUBLIC_URL": "https://127.0.0.1:8000/.well-known/mercure",
14+
"#4": "The secret used to sign the JWTs",
15+
"MERCURE_JWT_SECRET": "!ChangeMe!"
16+
},
17+
"aliases": ["mercure"]
18+
}

0 commit comments

Comments
 (0)