Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 903cd99

Browse files
author
Matthias Erll
committed
Add original comments to included nginx configuration.
1 parent 3a89bde commit 903cd99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/nginx/docker-registry.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
proxy_pass http://docker-registry;
2-
proxy_set_header Host $http_host;
3-
proxy_set_header X-Real-IP $remote_addr;
4-
proxy_set_header Authorization "";
2+
proxy_set_header Host $http_host; # required for docker client's sake
3+
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
4+
proxy_set_header Authorization ""; # see https://github.com/dotcloud/docker-registry/issues/170
55
proxy_read_timeout 900;

0 commit comments

Comments
 (0)