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

Commit f764414

Browse files
author
Matthew Fisher
committed
add workaround for #170
1 parent fba437a commit f764414

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

contrib/nginx.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ server {
2020
ssl on;
2121
ssl_certificate /etc/ssl/certs/docker-registry;
2222
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+
2728
client_max_body_size 0; # disable any limits to avoid HTTP 413 for large image uploads
2829

2930
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)

contrib/nginx_1-3-9.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ server {
1818
ssl on;
1919
ssl_certificate /etc/ssl/certs/docker-registry;
2020
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+
2526
client_max_body_size 0; # disable any limits to avoid HTTP 413 for large image uploads
2627

2728
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)

0 commit comments

Comments
 (0)