Skip to content

Commit b34ebf9

Browse files
committed
minor #443 [Website] Making the Mercure key longer to satisfy JWT key requirements (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [Website] Making the Mercure key longer to satisfy JWT key requirements | Q | A | ------------- | --- | Bug fix? | no (only to the website) | New feature? | no | Tickets | fixes #442 | License | MIT New key validation in 4.2.0 of lcobucci/jwt - https://github.com/lcobucci/jwt/releases/tag/4.2.0 causes errors because our keys were too short. Fair enough :). The production site is already fixed, as the key is stored as a platform.sh variable (and I made the key longer there). This is just for local development. Cheers! Commits ------- c6aa44a Making the Mercure key longer to satisfy JWT key requirements
2 parents 06b6eb1 + c6aa44a commit b34ebf9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ux.symfony.com/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MERCURE_URL=https://ux.symfony.com/.well-known/mercure
2525
# The public URL of the Mercure hub, used by the browser to connect
2626
MERCURE_PUBLIC_URL=https://ux.symfony.com/.well-known/mercure
2727
# The secret used to sign the JWTs
28-
MERCURE_JWT_SECRET="!ChangeMe!"
28+
MERCURE_JWT_SECRET="!ChangeMe!+MAKE_THE_KEY_LONG_ENOUGH"
2929
###< symfony/mercure-bundle ###
3030

3131
###> doctrine/doctrine-bundle ###

ux.symfony.com/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ services:
77
restart: unless-stopped
88
environment:
99
SERVER_NAME: ':80'
10-
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
11-
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
10+
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!+MAKE_THE_KEY_LONG_ENOUGH'
11+
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!+MAKE_THE_KEY_LONG_ENOUGH'
1212
# Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive
1313
MERCURE_EXTRA_DIRECTIVES: |
1414
cors_origins https://127.0.0.1:9044

0 commit comments

Comments
 (0)