forked from rDrama/rDrama
1
0
Fork 0

increase ratelimit for dark_rose

master
Aevann 2023-08-30 14:13:37 +03:00
parent 8b77aef0cc
commit 81b29c2d4b
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ limiter = Limiter(
app=app, app=app,
key_func=get_CF, key_func=get_CF,
default_limits=[DEFAULT_RATELIMIT], default_limits=[DEFAULT_RATELIMIT],
application_limits=["10/second;200/minute;5000/hour;20000/day"], application_limits=["10/second;200/minute;5000/hour;30000/day"],
storage_uri=app.config["CACHE_REDIS_URL"], storage_uri=app.config["CACHE_REDIS_URL"],
default_limits_deduct_when=lambda response: response.status_code < 400, default_limits_deduct_when=lambda response: response.status_code < 400,
) )

View File

@ -49,7 +49,7 @@ class Service(Enum):
CHAT = auto() CHAT = auto()
DEFAULT_RATELIMIT = "30/minute;200/hour;1000/day" DEFAULT_RATELIMIT = "30/minute;200/hour;1000/day"
CASINO_RATELIMIT = "100/minute;2000/hour;12000/day" CASINO_RATELIMIT = "100/minute;2000/hour;20000/day"
PUSH_NOTIF_LIMIT = 1000 PUSH_NOTIF_LIMIT = 1000