支持 Jenkins 灰度发布与独立运行数据
This commit is contained in:
@@ -7,7 +7,7 @@ from flask import current_app, jsonify, request
|
||||
|
||||
def rate_limit():
|
||||
path = request.path
|
||||
if path.startswith('/static') or path.startswith('/api/human/'):
|
||||
if path == '/healthz' or path.startswith('/static') or path.startswith('/api/human/'):
|
||||
return None
|
||||
ip = request.remote_addr or 'unknown'
|
||||
now = time.time()
|
||||
|
||||
Reference in New Issue
Block a user