[Update, Config] Add Redis to exposed hosts

master
andryyy 2020-03-19 12:19:17 +01:00
parent 7db5bc01a4
commit 33dec1db21
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
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 DOVEADM_PORT=127.0.0.1:19991
SQL_PORT=127.0.0.1:13306 SQL_PORT=127.0.0.1:13306
SOLR_PORT=127.0.0.1:18983 SOLR_PORT=127.0.0.1:18983
REDIS_PORT=127.0.0.1:7654
# Your timezone # Your timezone

View File

@ -187,6 +187,7 @@ CONFIG_ARRAY=(
"ALLOW_ADMIN_EMAIL_LOGIN" "ALLOW_ADMIN_EMAIL_LOGIN"
"SKIP_HTTP_VERIFICATION" "SKIP_HTTP_VERIFICATION"
"SOGO_EXPIRE_SESSION" "SOGO_EXPIRE_SESSION"
"REDIS_PORT"
) )
sed -i '$a\' mailcow.conf 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 session timeout in minutes' >> mailcow.conf
echo "SOGO_EXPIRE_SESSION=480" >> mailcow.conf echo "SOGO_EXPIRE_SESSION=480" >> mailcow.conf
fi 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 elif ! grep -q ${option} mailcow.conf; then
echo "Adding new option \"${option}\" to mailcow.conf" echo "Adding new option \"${option}\" to mailcow.conf"
echo "${option}=n" >> mailcow.conf echo "${option}=n" >> mailcow.conf