|
|
|
@ -465,7 +465,8 @@ def worker_loop():
|
|
|
|
@app.before_request
|
|
|
|
@app.before_request
|
|
|
|
def check_hmac_auth():
|
|
|
|
def check_hmac_auth():
|
|
|
|
"""Проверяет HMAC подпись для всех запросов кроме health check."""
|
|
|
|
"""Проверяет HMAC подпись для всех запросов кроме health check."""
|
|
|
|
if request.path == "/health":
|
|
|
|
allowed_paths = {"/health", "/comfyui/status", "/comfyui/logs", "/comfyui/system_stats"}
|
|
|
|
|
|
|
|
if request.path in allowed_paths:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
body = request.get_data()
|
|
|
|
body = request.get_data()
|
|
|
|
|