diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 404b84a38..69a039590 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -53,7 +53,7 @@ class Service(Enum): RDRAMA = auto() CHAT = auto() -DEFAULT_RATELIMIT = "30/minute;200/hour;1000/day" +DEFAULT_RATELIMIT = "30/minute;400/hour;1000/day" CASINO_RATELIMIT = "100/minute;5000/hour;20000/day" DELETE_RATELIMIT = "10/minute;50/day" diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 6d72d44b3..68a3febb3 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -406,8 +406,8 @@ def submit_hat(v): @feature_required('HAT_SUBMISSIONS') @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) -@limiter.limit("120/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400) -@limiter.limit("120/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) +@limiter.limit("120/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("120/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @admin_level_required(PERMS['MODERATE_PENDING_SUBMITTED_ASSETS']) def approve_hat(v, name): comment = request.values.get("comment", "").strip() diff --git a/files/routes/awards.py b/files/routes/awards.py index 2b5b1d1f6..b8772bf88 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -121,8 +121,8 @@ def buy_awards(v, kind, AWARDS, quantity): @app.post("/buy/") @limiter.limit('1/second', scope=rpath) #Needed to fix race condition @limiter.limit('1/second', scope=rpath, key_func=get_ID) #Needed to fix race condition -@limiter.limit("100/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400) -@limiter.limit("100/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) +@limiter.limit("100/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("100/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required def buy(v, kind): AWARDS = deepcopy(AWARDS_ENABLED(v)) diff --git a/files/routes/comments.py b/files/routes/comments.py index 49b502914..69dd4bc22 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -97,8 +97,8 @@ def post_pid_comment_cid(cid, v, pid=None, anything=None, hole=None): @app.post("/comment") @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) -@limiter.limit("20/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400) -@limiter.limit("20/minute;200/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) +@limiter.limit("20/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("20/minute;400/hour;1000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @is_not_banned def comment(v): parent_fullname = request.values.get("parent_fullname").strip()