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

Commit 0b1c0ad

Browse files
author
Matthew Fisher
committed
disable auth_basic for health checks
1 parent 67ecdd0 commit 0b1c0ad

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

contrib/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@ server {
4242
auth_basic "Restricted";
4343
auth_basic_user_file docker-registry.htpasswd;
4444
}
45+
46+
location /_ping {
47+
auth_basic off;
48+
}
49+
50+
location /v1/_ping {
51+
auth_basic off;
52+
}
4553
}

contrib/nginx_1-3-9.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,12 @@ server {
3636
auth_basic "Restricted";
3737
auth_basic_user_file docker-registry.htpasswd;
3838
}
39+
40+
location /_ping {
41+
auth_basic off;
42+
}
43+
44+
location /v1/_ping {
45+
auth_basic off;
46+
}
3947
}

0 commit comments

Comments
 (0)