From 19772111cde1096fb6aa73993fc576f6e6158e71 Mon Sep 17 00:00:00 2001 From: e-maks Date: Sun, 8 Mar 2026 14:56:11 +0300 Subject: [PATCH] allow stats without auth --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 2ec4e5b..d8c357b 100644 --- a/server.py +++ b/server.py @@ -465,7 +465,8 @@ def worker_loop(): @app.before_request def check_hmac_auth(): """Проверяет 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 body = request.get_data()