dont ratelimit /gumroad and /kofi
parent
480b08f447
commit
3576dec07f
|
@ -1373,7 +1373,7 @@ def claim_rewards_all_users():
|
||||||
KOFI_TOKEN = environ.get("KOFI_TOKEN", "").strip()
|
KOFI_TOKEN = environ.get("KOFI_TOKEN", "").strip()
|
||||||
if KOFI_TOKEN:
|
if KOFI_TOKEN:
|
||||||
@app.post("/kofi")
|
@app.post("/kofi")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT)
|
@limiter.exempt
|
||||||
def kofi():
|
def kofi():
|
||||||
data = json.loads(request.values['data'])
|
data = json.loads(request.values['data'])
|
||||||
verification_token = data['verification_token']
|
verification_token = data['verification_token']
|
||||||
|
@ -1404,8 +1404,7 @@ if KOFI_TOKEN:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@app.post("/gumroad")
|
@app.post("/gumroad")
|
||||||
@limiter.limit('1/second', scope=rpath)
|
@limiter.exempt
|
||||||
@limiter.limit(DEFAULT_RATELIMIT)
|
|
||||||
def gumroad():
|
def gumroad():
|
||||||
data = request.values
|
data = request.values
|
||||||
ip = request.headers.get('CF-Connecting-IP')
|
ip = request.headers.get('CF-Connecting-IP')
|
||||||
|
|
Loading…
Reference in New Issue