mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-03-05 15:06:20 +02:00
[Compose] Static IPv4 for Dovecot [SOGo] Remove SOGoIMAPServer from sogo.conf [SOGo] Add SOGoIMAPServer to bootstrap process [Nginx] Disallow editAccount for other accounts than 0 (own)
9 lines
299 B
Bash
9 lines
299 B
Bash
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_username;
|
|
proxy_set_header x-webobjects-remote-user $user;
|
|
if ($args ~* (.*)(account=(?!0))(.*)) {
|
|
return 401;
|
|
}'
|
|
fi
|