Docker client wants to check /v2/.... Allow /v2/ from outside but not internally

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-06-12 23:21:07 +02:00
parent ae57973eee
commit b2f08b8b00

View file

@ -27,7 +27,15 @@ ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
AuthName "Candidate Registry Authentication"
AuthType Basic
AuthUserFile /etc/httpd/conf.d/candidate-registry.fedoraproject.org/passwd
Require valid-user
<RequireAny>
Require valid-user
<RequireAll>
Require not ip 10.5
# This require is because otherwise apache thinks the Require not ip is useless
Require method GET
</RequireAll>
</RequireAny>
</Location>
# But we allow random pulling by anyone without auth