From 2c6887095d2af8bc705760e730b229c4067f9ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sat, 12 Jul 2025 23:25:42 +0200 Subject: [PATCH] healthcheck w docker-compose --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 151948c..2403f1a 100644 --- a/app.py +++ b/app.py @@ -272,7 +272,7 @@ def require_system_password(): if endpoint is None: return - if endpoint == 'system_auth': + if endpoint in ('system_auth', 'healthcheck'): return if 'authorized' not in request.cookies and not endpoint.startswith('login') and endpoint != 'favicon': @@ -1208,7 +1208,7 @@ def healthcheck(): correct_token = app.config.get('HEALTHCHECK_TOKEN') if header_token != correct_token: - abort(403) + abort(404) return 'OK', 200 # =========================================================================================