mirror of
https://github.com/genuinetools/reg.git
synced 2024-10-03 13:51:45 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
7 lines
484 B
Text
7 lines
484 B
Text
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;
|
|
proxy_set_header Authorization ""; # For basic auth through nginx in v1 to work, please comment this line
|
|
proxy_read_timeout 900;
|