add proxy to reach mercure server
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
c6becd3bbd
commit
5373feed3c
|
|
@ -31,7 +31,21 @@ server {
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
return 404;
|
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;
|
error_log /var/log/nginx/ogcore-error.log;
|
||||||
access_log /var/log/nginx/ogcore-access.log;
|
access_log /var/log/nginx/ogcore-access.log;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue