proxyAuth: Fix docker UA detection

This commit is contained in:
Girish Ramakrishnan
2021-02-09 13:44:34 -08:00
parent 30c3acaed9
commit 1d0ad3cb47
3 changed files with 4 additions and 2 deletions

View File

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