This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ server {
20
20
ssl on ;
21
21
ssl_certificate /etc/ssl/certs/docker-registry;
22
22
ssl_certificate_key /etc/ssl/private/docker-registry;
23
-
24
- proxy_set_header Host $http_host ; # required for docker client's sake
25
- proxy_set_header X-Real-IP $remote_addr ; # pass on real client's IP
26
-
23
+
24
+ proxy_set_header Host $http_host ; # required for docker client's sake
25
+ proxy_set_header X-Real-IP $remote_addr ; # pass on real client's IP
26
+ proxy_set_header Authorization "" ; # see https://github.com/dotcloud/docker-registry/issues/170
27
+
27
28
client_max_body_size 0 ; # disable any limits to avoid HTTP 413 for large image uploads
28
29
29
30
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ server {
18
18
ssl on;
19
19
ssl_certificate /etc/ssl/certs/docker-registry;
20
20
ssl_certificate_key /etc/ssl/private/docker-registry;
21
-
22
- proxy_set_header Host $http_host; # required for docker client's sake
23
- proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
24
-
21
+
22
+ proxy_set_header Host $http_host; # required for docker client's sake
23
+ proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
24
+ proxy_set_header Authorization ""; # see https://github.com/dotcloud/docker-registry/issues/170
25
+
25
26
client_max_body_size 0; # disable any limits to avoid HTTP 413 for large image uploads
26
27
27
28
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
You can’t perform that action at this time.
0 commit comments