rspamd: add redis-server for caching

This commit is contained in:
missytake
2023-10-16 17:05:19 +02:00
parent a47df20e22
commit 118ae49674
2 changed files with 11 additions and 0 deletions

View File

@@ -438,6 +438,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";