update history key in Rspamd Redis configuration

This commit is contained in:
georglauterbach 2024-03-05 10:34:41 +01:00
parent d227d6dc73
commit 14191e4608
No known key found for this signature in database
GPG Key ID: F367F7C43C118578
1 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,15 @@ function __rspamd__setup_redis() {
servers = "127.0.0.1:6379";
expand_keys = true;
EOF
# We do not use `{{HOSTNAME}}` but only `{{COMPRES}}` to better support
# Kubernetes, see https://github.com/orgs/docker-mailserver/discussions/3922
cat >"${RSPAMD_LOCAL_D}/history_redis.conf" << "EOF"
# documentation: https://rspamd.com/doc/modules/history_redis.html
key_prefix = "rs_history{{COMPRESS}}";
EOF
# Here we adjust the Redis default configuration that we supply to Redis when starting it.