[Web] allow mbox sso_token login for mailcow and sogo
This commit is contained in:
@@ -315,8 +315,14 @@ remote ${IPV4_NETWORK}.248 {
|
||||
}
|
||||
EOF
|
||||
|
||||
# Create random master Password for SOGo SSO
|
||||
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
|
||||
# Set SOGo SSO master Password
|
||||
if [ -z "$SOGO_SSO_PASS" ]; then
|
||||
# Set from env var
|
||||
RAND_PASS=$SOGO_SSO_PASS
|
||||
else
|
||||
# Create random master Password
|
||||
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
|
||||
fi
|
||||
echo -n ${RAND_PASS} > /etc/phpfpm/sogo-sso.pass
|
||||
cat <<EOF > /etc/dovecot/sogo-sso.conf
|
||||
# Autogenerated by mailcow
|
||||
|
Reference in New Issue
Block a user