proxyauth: make auth error handler return 401 for docker client

This commit is contained in:
Girish Ramakrishnan
2021-01-26 23:25:56 -08:00
parent 4610e05ca1
commit 8f7b224846
2 changed files with 19 additions and 2 deletions

View File

@@ -258,6 +258,9 @@ server {
}
location @proxy-auth-login {
if ($http_user_agent ~* "docker-client") {
return 401;
}
return 302 /login?redirect=$request_uri;
}