[Update, Config] Add Redis to exposed hosts
parent
7db5bc01a4
commit
33dec1db21
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue