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;