mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 01:44:38 +00:00
rspamd: add redis-server for caching
This commit is contained in:
@@ -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"),
|
||||
|
||||
1
cmdeploy/src/cmdeploy/rspamd/rspamd_redis.conf
Normal file
1
cmdeploy/src/cmdeploy/rspamd/rspamd_redis.conf
Normal file
@@ -0,0 +1 @@
|
||||
servers = "127.0.0.1";
|
||||
Reference in New Issue
Block a user