set the Host header to registry to include the port information

This commit is contained in:
Tan Jiang 2016-05-11 14:25:22 +08:00
parent 1fb4506eaf
commit dbc20a57bc

View File

@ -47,7 +47,7 @@ http {
location /v2/ {
proxy_pass http://registry/v2/;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;