summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-11-18 18:10:01 +0000
committerGitHub <noreply@github.com>2022-11-18 18:10:01 +0000
commit78e23eea056cbf75b9478140f17699195dd490f2 (patch)
tree44585324ed557dc60d345ee4bf735ca3e95673a1 /synapse
parentEnable 'strict_equality' checking for mypy (#14452) (diff)
downloadsynapse-78e23eea056cbf75b9478140f17699195dd490f2.tar.xz
Reduce default third party invite rate limit to 216 invites per day (#14487)
The previous default was the same as the `rc_message` rate limit, which
defaults to 17,280 per day.

Signed-off-by: Sean Quah <seanq@matrix.org>
Diffstat (limited to '')
-rw-r--r--synapse/config/ratelimiting.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py
index 1ed001e105..5c13fe428a 100644
--- a/synapse/config/ratelimiting.py
+++ b/synapse/config/ratelimiting.py
@@ -150,8 +150,5 @@ class RatelimitConfig(Config):
 
         self.rc_third_party_invite = RatelimitSettings(
             config.get("rc_third_party_invite", {}),
-            defaults={
-                "per_second": self.rc_message.per_second,
-                "burst_count": self.rc_message.burst_count,
-            },
+            defaults={"per_second": 0.0025, "burst_count": 5},
         )