diff --git a/compose.yaml b/compose.yaml index c4fa3b1..21181f3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,11 +7,11 @@ services: environment: # Uncomment the following line to disable HTTPS, #SERVER_NAME: ':80' - MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' - MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' + MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!' + MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!' # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive MERCURE_EXTRA_DIRECTIVES: | - cors_origins http://127.0.0.1:8000 + cors_origins http://localhost:8080 # Comment the following line to disable the development mode command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile healthcheck: diff --git a/config/packages/mercure.yaml b/config/packages/mercure.yaml index 11dbcda..a4c87b7 100644 --- a/config/packages/mercure.yaml +++ b/config/packages/mercure.yaml @@ -3,4 +3,6 @@ mercure: default: url: '%env(MERCURE_URL)%' public_url: '%env(MERCURE_PUBLIC_URL)%' - jwt: '%env(MERCURE_JWT_SECRET)%' + jwt: + secret: '%env(MERCURE_JWT_SECRET)%' + publish: ['*'] diff --git a/docker/compose.yaml b/docker/compose.yaml index b37ede0..23b5f35 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -63,8 +63,8 @@ services: container_name: escapepage-mercure environment: SERVER_NAME: ":80" - MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET:-!ChangeThisMercureJWT!} - MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET:-!ChangeThisMercureJWT!} + MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!' + MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureJWTSignedBySymfonySecretKey!' MERCURE_CORS_ALLOWED_ORIGINS: http://localhost:8080 MERCURE_PUBLISH_ALLOWED_ORIGINS: http://localhost:8080 MERCURE_EXTRA_DIRECTIVES: |