[Update, Config] Add Redis to exposed hosts

This commit is contained in:
andryyy
2020-03-19 12:19:17 +01:00
parent 7db5bc01a4
commit 33dec1db21
2 changed files with 7 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ SIEVE_PORT=4190
DOVEADM_PORT=127.0.0.1:19991
SQL_PORT=127.0.0.1:13306
SOLR_PORT=127.0.0.1:18983
REDIS_PORT=127.0.0.1:7654
# Your timezone

View File

@@ -187,6 +187,7 @@ CONFIG_ARRAY=(
"ALLOW_ADMIN_EMAIL_LOGIN"
"SKIP_HTTP_VERIFICATION"
"SOGO_EXPIRE_SESSION"
"REDIS_PORT"
)
sed -i '$a\' mailcow.conf
@@ -327,6 +328,11 @@ for option in ${CONFIG_ARRAY[@]}; do
echo '# SOGo session timeout in minutes' >> mailcow.conf
echo "SOGO_EXPIRE_SESSION=480" >> mailcow.conf
fi
elif [[ ${option} == "REDIS_PORT" ]]; then
if ! grep -q ${option} mailcow.conf; then
echo "Adding new option \"${option}\" to mailcow.conf"
echo "REDIS_PORT=127.0.0.1:7654" >> mailcow.conf
fi
elif ! grep -q ${option} mailcow.conf; then
echo "Adding new option \"${option}\" to mailcow.conf"
echo "${option}=n" >> mailcow.conf