From 1cedef173f42bb2c3d9345c067e4600f7dc77533 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 23 Jun 2021 14:11:41 +0200 Subject: [PATCH] [SOGo] Add trusted proxy by default --- data/Dockerfiles/sogo/bootstrap-sogo.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/data/Dockerfiles/sogo/bootstrap-sogo.sh b/data/Dockerfiles/sogo/bootstrap-sogo.sh index d908bb3e..04472dfd 100755 --- a/data/Dockerfiles/sogo/bootstrap-sogo.sh +++ b/data/Dockerfiles/sogo/bootstrap-sogo.sh @@ -128,11 +128,6 @@ EOF done fi -if [[ "${ALLOW_ADMIN_EMAIL_LOGIN}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then - TRUST_PROXY="YES" -else - TRUST_PROXY="NO" -fi # cat /dev/urandom seems to hang here occasionally and is not recommended anyway, better use openssl RAND_PASS=$(openssl rand -base64 16 | tr -dc _A-Z-a-z-0-9) @@ -148,7 +143,7 @@ cat < /var/lib/sogo/GNUstep/Defaults/sogod.plist SOGoIMAPServer imap://${IPV4_NETWORK}.250:143/?TLS=YES&tlsVerifyMode=none SOGoTrustProxyAuthentication - ${TRUST_PROXY} + YES SOGoEncryptionKey ${RAND_PASS} OCSCacheFolderURL