forked from rDrama/rDrama
sneed
parent
c7c3c78dc4
commit
5a81ed695c
|
@ -145,6 +145,8 @@ app.config["RATELIMIT_DEFAULTS_DEDUCT_WHEN"]=lambda:True
|
||||||
app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False
|
app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False
|
||||||
app.config["RATELIMIT_HEADERS_ENABLED"]=True
|
app.config["RATELIMIT_HEADERS_ENABLED"]=True
|
||||||
|
|
||||||
|
app.config["DISABLESIGNUPS"] = bool(int(environ.get("DISABLESIGNUPS", "0")))
|
||||||
|
|
||||||
|
|
||||||
def limiter_key_func():
|
def limiter_key_func():
|
||||||
return request.remote_addr
|
return request.remote_addr
|
||||||
|
|
Loading…
Reference in New Issue