Skip to content

Commit

Permalink
Mitigate HTTPoxy Vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jul 20, 2016
1 parent ce7085d commit a38f2b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/nginx/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,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;
Expand Down

0 comments on commit a38f2b2

Please sign in to comment.