Send the original host along to the registry code

This commit is contained in:
Joseph Schorr 2015-08-24 16:09:17 -04:00
parent e56115d9d2
commit 0c7839203e

View file

@ -45,13 +45,14 @@ location /v1/repositories/ {
limit_req zone=repositories burst=10;
}
location /v1/ {
location ~ ^/(v1|v2)/ {
proxy_buffering off;
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;