From d6c5fc5d1bd147a4ff8a2684d5077b985c60b02a Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Wed, 18 Nov 2015 15:53:52 -0500 Subject: [PATCH] Stop clobbering our proxy_set_header directives --- conf/server-base.conf | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/conf/server-base.conf b/conf/server-base.conf index 22889a5e9..ac1cc883f 100644 --- a/conf/server-base.conf +++ b/conf/server-base.conf @@ -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;