Rate limit public registration writes
This commit is contained in:
parent
cccca324c1
commit
b80de5a1f4
6 changed files with 129 additions and 1 deletions
|
|
@ -102,6 +102,12 @@ def create_application() -> PortalApplication:
|
|||
).split(",")
|
||||
if item.strip()
|
||||
),
|
||||
registration_rate_limit=int(
|
||||
os.environ.get("USER_ENGINE_REGISTRATION_RATE_LIMIT", "10")
|
||||
),
|
||||
registration_rate_window_seconds=int(
|
||||
os.environ.get("USER_ENGINE_REGISTRATION_RATE_WINDOW_SECONDS", "60")
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue