2019-02-24 05:29:14 +08:00
|
|
|
if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
|
2019-02-24 05:20:09 +08:00
|
|
|
echo 'auth_request /sogo-auth-verify;
|
2019-02-24 00:59:18 +08:00
|
|
|
auth_request_set $user $upstream_http_x_username;
|
|
|
|
proxy_set_header x-webobjects-remote-user $user;
|
2019-02-25 07:00:32 +08:00
|
|
|
if ($args ~* (.*)(account=(?!0))(.*)) {
|
|
|
|
return 401;
|
|
|
|
}'
|
2019-02-24 00:59:18 +08:00
|
|
|
fi
|