add proxy to reach mercure server
testing/ogcore-api/pipeline/head This commit looks good Details

fix_mercure_in_containers
Nicolas Arenas 2025-03-14 11:27:21 +01:00
parent 14f662a2a6
commit ca79698e87
1 changed files with 4 additions and 3 deletions

View File

@ -15,18 +15,19 @@ server {
ssl_certificate /etc/nginx/certs/ogcore.uds-test.net.crt.pem;
ssl_certificate_key /etc/nginx/certs/ogcore.uds-test.net.key.pem;
location /mercure/ {
location /mercure/ {
proxy_pass http://ogcore-mercure:3000/;
proxy_read_timeout 24h;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host:$server_port;
# Enable fast reply in SSE
proxy_buffering off;
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
# Forward headers
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
}