2019-02-23 22:29:14 +01:00
|
|
|
if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
|
2019-02-23 22:20:09 +01:00
|
|
|
echo 'auth_request /sogo-auth-verify;
|
2019-02-26 09:02:35 +01:00
|
|
|
auth_request_set $user $upstream_http_x_user;
|
|
|
|
auth_request_set $auth $upstream_http_x_auth;
|
|
|
|
auth_request_set $auth_type $upstream_http_x_auth_type;
|
|
|
|
proxy_set_header x-webobjects-remote-user "$user";
|
|
|
|
proxy_set_header Authorization "$auth";
|
|
|
|
proxy_set_header x-webobjects-auth-type "$auth_type";
|
|
|
|
'
|
2019-02-23 17:59:18 +01:00
|
|
|
fi
|