2015-04-13 23:03:10 +02:00
|
|
|
proxy_pass http://docker-registry;
|
|
|
|
proxy_set_header Host $http_host; # required for docker client's sake
|
|
|
|
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2015-06-09 23:17:01 +02:00
|
|
|
proxy_set_header Authorization ""; # For basic auth through nginx in v1 to work, please comment this line
|
2015-04-13 23:03:10 +02:00
|
|
|
proxy_read_timeout 900;
|