Merge pull request #913 from jakedt/fucknginx

Remove the Transfer Encoding directive from v2 headers
This commit is contained in:
Jake Moshenko 2015-11-18 17:26:38 -05:00
commit 5894761bf7

View file

@ -50,6 +50,11 @@ location ~ ^/(v1/repositories|v2/auth)/ {
}
location ~ ^/(v1|v2)/ {
# Setting ANY header clears all inherited proxy_set_header directives
proxy_set_header X-Forwarded-For $proper_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_buffering off;
proxy_request_buffering off;