rspamd: add redis-server for caching

This commit is contained in:
missytake
2023-10-16 17:05:19 +02:00
committed by link2xt
parent a2316beab1
commit bf863f05b6
2 changed files with 11 additions and 0 deletions

View File

@@ -436,6 +436,16 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
)
need_restart |= hfilter.changed
redis_conf = files.put(
name="enable redis for caching",
src=importlib.resources.files(__package__).joinpath("rspamd/rspamd_redis.conf"),
dest="/etc/rspamd/local.d/redis.conf",
user="root",
group="root",
mode="644",
)
need_restart |= redis_conf.changed
ratelimit_conf = files.put(
name="enable rate limiting",
src=importlib.resources.files(__package__).joinpath("rspamd/ratelimit.conf"),

View File

@@ -0,0 +1 @@
servers = "127.0.0.1";