Merge pull request #910 from jakedt/nginxfix

Stop clobbering our proxy_set_header directives
This commit is contained in:
Jake Moshenko 2015-11-18 16:01:34 -05:00
commit d6abfdff72

View file

@ -19,7 +19,7 @@ add_header X-Frame-Options DENY;
# Proxy Headers # Proxy Headers
proxy_set_header X-Forwarded-For $proper_forwarded_for; proxy_set_header X-Forwarded-For $proper_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host; proxy_set_header Host $host;
proxy_redirect off; proxy_redirect off;
proxy_set_header Transfer-Encoding $http_transfer_encoding; proxy_set_header Transfer-Encoding $http_transfer_encoding;
@ -55,8 +55,6 @@ location ~ ^/(v1|v2)/ {
proxy_request_buffering off; proxy_request_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://registry_app_server; proxy_pass http://registry_app_server;
proxy_temp_path /tmp 1 2; proxy_temp_path /tmp 1 2;
@ -71,20 +69,6 @@ location /v1/_ping {
return 200 'true'; 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/ { location /c1/ {
proxy_buffering off; proxy_buffering off;