update docker-distribution-proxy template to handle /_ping special
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
f685312888
commit
2dddd8271b
1 changed files with 10 additions and 1 deletions
|
@ -30,11 +30,20 @@
|
||||||
ProxyPass /v2 http://localhost:5000/v2
|
ProxyPass /v2 http://localhost:5000/v2
|
||||||
ProxyPassReverse /v2 http://localhost:5000/v2
|
ProxyPassReverse /v2 http://localhost:5000/v2
|
||||||
|
|
||||||
|
ProxyPass /_ping http://localhost:5000/_ping
|
||||||
|
ProxyPassReverse /_ping http://localhost:5000/_ping
|
||||||
|
|
||||||
|
# Allow ping to run unauthenticated.
|
||||||
|
<Location /_ping>
|
||||||
|
Satisfy any
|
||||||
|
Allow from all
|
||||||
|
</Location>
|
||||||
|
|
||||||
<Location /v2>
|
<Location /v2>
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
AuthName "Registry Authentication"
|
|
||||||
{% if auth.type == "basic" %}
|
{% if auth.type == "basic" %}
|
||||||
|
AuthName "Registry Authentication"
|
||||||
AuthType basic
|
AuthType basic
|
||||||
AuthUserFile {{ auth.basic.userfile_dest }}
|
AuthUserFile {{ auth.basic.userfile_dest }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue