This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change
1
+ 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 "";
5
+ proxy_read_timeout 900;
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ server {
24
24
ssl_certificate /etc/ssl/certs/docker-registry;
25
25
ssl_certificate_key /etc/ssl/private/docker-registry;
26
26
27
- proxy_set_header Host $http_host ; # required for docker client's sake
28
- proxy_set_header X-Real-IP $remote_addr ; # pass on real client's IP
29
- proxy_set_header Authorization "" ; # see https://github.com/dotcloud/docker-registry/issues/170
30
-
31
27
client_max_body_size 0 ; # disable any limits to avoid HTTP 413 for large image uploads
32
28
33
29
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
@@ -38,19 +34,18 @@ server {
38
34
}
39
35
40
36
location / {
41
- proxy_pass http://docker-registry;
42
- proxy_set_header Host $host ;
43
- proxy_read_timeout 900 ;
44
-
45
37
auth_basic "Restricted" ;
46
38
auth_basic_user_file docker-registry.htpasswd;
39
+ include docker-registry.conf
47
40
}
48
41
49
42
location /_ping {
50
43
auth_basic off ;
44
+ include docker-registry.conf
51
45
}
52
46
53
47
location /v1/_ping {
54
48
auth_basic off ;
49
+ include docker-registry.conf
55
50
}
56
51
}
Original file line number Diff line number Diff line change @@ -22,29 +22,24 @@ server {
22
22
ssl_certificate /etc/ssl/certs/docker-registry;
23
23
ssl_certificate_key /etc/ssl/private/docker-registry;
24
24
25
- proxy_set_header Host $http_host; # required for docker client's sake
26
- proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
27
- proxy_set_header Authorization ""; # see https://github.com/dotcloud/docker-registry/issues/170
28
-
29
25
client_max_body_size 0; # disable any limits to avoid HTTP 413 for large image uploads
30
26
31
27
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
32
28
chunked_transfer_encoding on;
33
29
34
30
location / {
35
- proxy_pass http://docker-registry;
36
- proxy_set_header Host $host;
37
- proxy_read_timeout 900;
38
-
39
31
auth_basic "Restricted";
40
32
auth_basic_user_file docker-registry.htpasswd;
33
+ include docker-registry.conf
41
34
}
42
35
43
36
location /_ping {
44
37
auth_basic off;
38
+ include docker-registry.conf
45
39
}
46
40
47
41
location /v1/_ping {
48
42
auth_basic off;
43
+ include docker-registry.conf
49
44
}
50
45
}
You can’t perform that action at this time.
0 commit comments