[Web] allow mbox sso_token login for mailcow and sogo

This commit is contained in:
FreddleSpl0it
2023-06-16 08:53:25 +02:00
parent 06cce79806
commit eb33166f3e
6 changed files with 122 additions and 18 deletions

View File

@@ -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