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

Commit b498a42

Browse files
author
Matthew Fisher
committed
comment out redirect snippet
This snippet is purely convenience. docker pull on http will still fail with this set.
1 parent 0b1c0ad commit b498a42

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

contrib/nginx.conf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ upstream docker-registry {
77
server localhost:5000;
88
}
99

10-
server {
11-
listen *:80;
12-
server_name my.docker.registry.com;
13-
return 301 https://$server_name$request_uri;
14-
}
10+
# uncomment if you want a 301 redirect for users attempting to connect
11+
# on port 80
12+
# NOTE: docker client will still fail. This is just for convenience
13+
# server {
14+
# listen *:80;
15+
# server_name my.docker.registry.com;
16+
# return 301 https://$server_name$request_uri;
17+
# }
1518

1619
server {
1720
listen 443;

contrib/nginx_1-3-9.conf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ upstream docker-registry {
55
server localhost:5000;
66
}
77

8-
server {
9-
listen *:80;
10-
server_name my.docker.registry.com;
11-
return 301 https://$server_name$request_uri;
12-
}
8+
# uncomment if you want a 301 redirect for users attempting to connect
9+
# on port 80
10+
# NOTE: docker client will still fail. This is just for convenience
11+
# server {
12+
# listen *:80;
13+
# server_name my.docker.registry.com;
14+
# return 301 https://$server_name$request_uri;
15+
# }
1316

1417
server {
1518
listen 443;

0 commit comments

Comments
 (0)