From 0c7839203e31d712ff8e10a0e89c68fcbdfab81c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 24 Aug 2015 16:09:17 -0400 Subject: [PATCH] Send the original host along to the registry code --- conf/server-base.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/server-base.conf b/conf/server-base.conf index 046121e24..2bc26fb67 100644 --- a/conf/server-base.conf +++ b/conf/server-base.conf @@ -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;