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 10:53:16 +01:00
parent c6becd3bbd
commit 5373feed3c
1 changed files with 15 additions and 1 deletions

View File

@ -31,7 +31,21 @@ server {
location ~ \.php$ {
return 404;
}
location /mercure/ {
proxy_pass http://ogcore-mercure:3000/;
proxy_read_timeout 24h;
proxy_http_version 1.1;
proxy_set_header Connection "";
# Enable fast reply in SSE
proxy_buffering off;
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_log /var/log/nginx/ogcore-error.log;
access_log /var/log/nginx/ogcore-access.log;
}
}