proxyauth: make auth error handler return 401 for docker client
This commit is contained in:
@@ -258,6 +258,9 @@ server {
|
||||
}
|
||||
|
||||
location @proxy-auth-login {
|
||||
if ($http_user_agent ~* "docker-client") {
|
||||
return 401;
|
||||
}
|
||||
return 302 /login?redirect=$request_uri;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user