forked from c2corg/v6_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rate limiting config more flexible
- Loading branch information
Showing
2 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,13 @@ export guidebook_anonymous_user_account = 2 | |
|
||
export show_debugger_for_errors = false | ||
|
||
# Rate limiting settings | ||
export rate_limiting_alert_address = [email protected] | ||
# Window timespan in seconds: | ||
export rate_limiting_window_span = 900 | ||
# Max number of actions allowed during a single window: | ||
export rate_limiting_limit = 50 | ||
export rate_limiting_limit_moderator = 100 | ||
export rate_limiting_limit_robot = 1000 | ||
# Max number of times a user can be rate limited before being blocked: | ||
export rate_limiting_max_times = 3 |