Skip to content

Commit c86e065

Browse files
committed
Increase length of JWT secret to avoid errors in lcobucci/jwt ^4.2
1 parent 96d11c2 commit c86e065

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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://example.com/.well-known/mercure",
12+
"#3": "The public URL of the Mercure hub, used by the browser to connect",
13+
"MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure",
14+
"#4": "The secret used to sign the JWTs",
15+
"MERCURE_JWT_SECRET": "!MUST_CHANGE_THIS_SECRET_JWT_KEY!"
16+
},
17+
"docker-compose": {
18+
"docker-compose.yml": {
19+
"services": [
20+
"mercure:",
21+
" image: dunglas/mercure",
22+
" restart: unless-stopped",
23+
" environment:",
24+
" SERVER_NAME: ':80'",
25+
" MERCURE_PUBLISHER_JWT_KEY: '!MUST_CHANGE_THIS_SECRET_JWT_KEY!'",
26+
" MERCURE_SUBSCRIBER_JWT_KEY: '!MUST_CHANGE_THIS_SECRET_JWT_KEY!'",
27+
" # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive",
28+
" MERCURE_EXTRA_DIRECTIVES: |",
29+
" cors_origins http://127.0.0.1:8000",
30+
" # Comment the following line to disable the development mode",
31+
" command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev",
32+
" volumes:",
33+
" - mercure_data:/data",
34+
" - mercure_config:/config"
35+
],
36+
"volumes": ["mercure_data:", "mercure_config:"]
37+
},
38+
"docker-compose.override.yml": {
39+
"services": [
40+
"mercure:",
41+
" ports:",
42+
" - \"80\""
43+
]
44+
}
45+
},
46+
"aliases": ["mercure"]
47+
}

0 commit comments

Comments
 (0)