Merge pull request #913 from jakedt/fucknginx
Remove the Transfer Encoding directive from v2 headers
This commit is contained in:
commit
5894761bf7
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue