diff --git a/docker/default.conf b/docker/default.conf index c67e1ef..f4682a4 100644 --- a/docker/default.conf +++ b/docker/default.conf @@ -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; }