Merge pull request #1398 from aledbf/nginx-httpoxy

Mitigate HTTPoxy Vulnerability
This commit is contained in:
Prashanth B 2016-07-20 10:56:17 -07:00 committed by GitHub
commit 1a04fa4881

View file

@ -252,6 +252,10 @@ http {
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $pass_access_scheme;
# mitigate HTTPoxy Vulnerability
# https://www.nginx.com/blog/mitigating-the-httpoxy-vulnerability-with-nginx/
proxy_set_header Proxy "";
proxy_connect_timeout {{ $cfg.proxyConnectTimeout }}s;
proxy_send_timeout {{ $cfg.proxySendTimeout }}s;
proxy_read_timeout {{ $cfg.proxyReadTimeout }}s;