Deny api v1 because docker tries to fall back

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-06-12 22:59:41 +02:00
parent cbd6dfe92b
commit 39dc41533e

View file

@ -6,6 +6,11 @@ ProxyPreserveHost On
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
# No more v1
<Location /v1/>
Require all denied
</Location>
# We require auth on /v2/ exactly to make sure that docker realizes it needs to
# send a username/password.
<Location /v2/>