[Nginx] Allow SOGo SSO

This commit is contained in:
andryyy
2021-06-23 14:12:14 +02:00
parent 1cedef173f
commit 3045bcf49d
2 changed files with 5 additions and 8 deletions

View File

@@ -1,10 +0,0 @@
if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
echo 'auth_request /sogo-auth-verify;
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";
'
fi