forked from rDrama/rDrama
increase ratelimit for dark_rose
parent
8b77aef0cc
commit
81b29c2d4b
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue