mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 17:14:31 +02:00
scripts/ENV: make disabling Redis possible (#3132)
* make disabling Redis possible * add documentation * Apply suggestions from code review * Update docs/content/config/environment.md --------- Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
dfc2b39308
commit
0949f16344
6 changed files with 47 additions and 15 deletions
|
@ -46,6 +46,20 @@ function __rspamd__preflight_checks
|
|||
else
|
||||
__rspamd__log 'debug' 'Rspamd will not use ClamAV (which has not been enabled)'
|
||||
fi
|
||||
|
||||
if [[ ${ENABLE_REDIS} -eq 1 ]]
|
||||
then
|
||||
__rspamd__log 'trace' 'Internal Redis is enabled, adding configuration'
|
||||
cat >/etc/rspamd/local.d/redis.conf << "EOF"
|
||||
# documentation: https://rspamd.com/doc/configuration/redis.html
|
||||
|
||||
servers = "127.0.0.1:6379";
|
||||
expand_keys = true;
|
||||
|
||||
EOF
|
||||
else
|
||||
__rspamd__log 'debug' 'Rspamd will not use internal Redis (which has been disabled)'
|
||||
fi
|
||||
}
|
||||
|
||||
# Adjust Postfix's configuration files. Append Rspamd at the end of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue