summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorDavid Teller <D.O.Teller@gmail.com>2022-06-30 11:44:47 +0200
committerGitHub <noreply@github.com>2022-06-30 09:44:47 +0000
commit80c7a06777507beb5401718dd07fbcb1cd377de1 (patch)
treee11e90171b7d2585df488a1710c7a1a67f0579d6 /synapse/config
parentDon't actually one-line the SQL statements we send to the DB (#13129) (diff)
downloadsynapse-80c7a06777507beb5401718dd07fbcb1cd377de1.tar.xz
Rate limiting invites per issuer (#13125)
Co-authored-by: reivilibre <oliverw@matrix.org>
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/ratelimiting.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py

index d4090a1f9a..4fc1784efe 100644 --- a/synapse/config/ratelimiting.py +++ b/synapse/config/ratelimiting.py
@@ -136,6 +136,11 @@ class RatelimitConfig(Config): defaults={"per_second": 0.003, "burst_count": 5}, ) + self.rc_invites_per_issuer = RateLimitConfig( + config.get("rc_invites", {}).get("per_issuer", {}), + defaults={"per_second": 0.3, "burst_count": 10}, + ) + self.rc_third_party_invite = RateLimitConfig( config.get("rc_third_party_invite", {}), defaults={