|
|
@@ -91,9 +91,9 @@ services:
|
|
|
- ./docker/nginx/site_ap2i.conf:/etc/nginx/conf.d/default.conf:cached
|
|
|
environment:
|
|
|
- VIRTUAL_HOST=${AP2I_VIRTUAL_HOST}
|
|
|
- - MERCURE_URL=https://${MERCURE_VIRTUAL_HOST}
|
|
|
- - MERCURE_PUBLIC_URL=https://${AP2I_VIRTUAL_HOST}/.well-known/mercure
|
|
|
- - MERCURE_JWT_SECRET=${MERCURE_SUBSCRIBER_JWT_KEY}
|
|
|
+ - MERCURE_URL=${MERCURE_URL}
|
|
|
+ - MERCURE_PUBLIC_URL=${MERCURE_PUBLIC_URL}
|
|
|
+ - MERCURE_JWT_SECRET=${MERCURE_JWT_KEY}
|
|
|
depends_on:
|
|
|
- ap2i
|
|
|
|
|
|
@@ -138,11 +138,12 @@ services:
|
|
|
environment:
|
|
|
VIRTUAL_HOST: ${MERCURE_VIRTUAL_HOST}
|
|
|
SERVER_NAME: ${MERCURE_VIRTUAL_HOST}
|
|
|
- MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_PUBLISHER_JWT_KEY}
|
|
|
- MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_SUBSCRIBER_JWT_KEY}
|
|
|
- # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive
|
|
|
+ JWT_KEY: ${MERCURE_JWT_KEY}
|
|
|
+ CORS_ALLOWED_ORIGINS: https://local.ap2i.opentalent.fr http://ap2i
|
|
|
+ PUBLISH_ALLOWED_ORIGINS: https://local.ap2i.opentalent.fr http://ap2i
|
|
|
+ # DEBUG: 1
|
|
|
MERCURE_EXTRA_DIRECTIVES: |
|
|
|
- cors_origins https://local.mercure.opentalent.fr
|
|
|
+ cors_origins https://local.ap2i.opentalent.fr http://ap2i
|
|
|
volumes:
|
|
|
- mercure_data:/data
|
|
|
- mercure_config:/config
|