mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 01:44:56 -04:00
Rate limiting invites per issuer (#13125)
Co-authored-by: reivilibre <oliverw@matrix.org>
This commit is contained in:
parent
4d3b8fb23f
commit
80c7a06777
3 changed files with 24 additions and 2 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue