Stop clobbering our proxy_set_header directives

This commit is contained in:
Jake Moshenko 2015-11-18 15:53:52 -05:00
parent 7e029184f5
commit d6c5fc5d1b

View file

@ -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;