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:12:23 +01:00
parent 5373feed3c
commit 14f662a2a6
1 changed files with 7 additions and 3 deletions

View File

@ -15,14 +15,18 @@ 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 /.well-known/mercure {
proxy_pass https://mercure:3000/.well-known/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 X-Real-IP $remote_addr;
# 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;
}