revert "Significantly lower ratelimit"
This commit is contained in:
parent
fd679af577
commit
265403e110
@ -459,13 +459,10 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
|
|||||||
)
|
)
|
||||||
need_restart |= redis_conf.changed
|
need_restart |= redis_conf.changed
|
||||||
|
|
||||||
ratelimit_conf = files.put(
|
ratelimit_conf = files.file(
|
||||||
name="enable rate limiting",
|
name="disable rate limiting",
|
||||||
src=importlib.resources.files(__package__).joinpath("rspamd/ratelimit.conf"),
|
path="/etc/rspamd/local.d/ratelimit.conf",
|
||||||
dest="/etc/rspamd/local.d/ratelimit.conf",
|
present=False,
|
||||||
user="root",
|
|
||||||
group="root",
|
|
||||||
mode="644",
|
|
||||||
)
|
)
|
||||||
need_restart |= ratelimit_conf.changed
|
need_restart |= ratelimit_conf.changed
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
rates {
|
|
||||||
user = {
|
|
||||||
bucket = {
|
|
||||||
burst = 60;
|
|
||||||
rate = "40 / 1min";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
whitelisted_user = "/etc/rspamd/local.d/whitelisted_users_ratelimit.map";
|
|
Loading…
Reference in New Issue
Block a user