Merge pull request #910 from jakedt/nginxfix
Stop clobbering our proxy_set_header directives
This commit is contained in:
commit
d6abfdff72
1 changed files with 1 additions and 17 deletions
|
@ -19,7 +19,7 @@ add_header X-Frame-Options DENY;
|
|||
# Proxy Headers
|
||||
proxy_set_header X-Forwarded-For $proper_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Host $host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_set_header Transfer-Encoding $http_transfer_encoding;
|
||||
|
@ -55,8 +55,6 @@ location ~ ^/(v1|v2)/ {
|
|||
proxy_request_buffering off;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Host $host;
|
||||
|
||||
proxy_pass http://registry_app_server;
|
||||
proxy_temp_path /tmp 1 2;
|
||||
|
@ -71,20 +69,6 @@ location /v1/_ping {
|
|||
return 200 'true';
|
||||
}
|
||||
|
||||
location /v2/ {
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_request_buffering off;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
proxy_pass http://registry_app_server;
|
||||
proxy_temp_path /tmp 1 2;
|
||||
|
||||
client_max_body_size 20G;
|
||||
}
|
||||
|
||||
location /c1/ {
|
||||
proxy_buffering off;
|
||||
|
||||
|
|
Reference in a new issue