From a2b79e4774f29a844b9c86a04338000085b11c6b Mon Sep 17 00:00:00 2001 From: jiri Date: Fri, 12 Jun 2026 09:31:48 +0000 Subject: [PATCH] revert 305347e1f6037bebcd8ceb824ea3527f78bca0b3 revert Update app/main.py --- app/main.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/main.py b/app/main.py index 3a23830..d878f41 100644 --- a/app/main.py +++ b/app/main.py @@ -52,19 +52,11 @@ def get_app_services(): for row in rows: app_id = row["id"] - health_url = (row["health_url"] or "/health").strip() - - # Interní monitor nesmí používat https://appfactory-caddy, - # protože certifikát není vystavený pro docker hostname appfactory-caddy. - if health_url.startswith("https://appfactory-caddy"): - health_url = health_url.replace("https://appfactory-caddy", "http://appfactory-caddy", 1) + health_url = row["health_url"] or "/health" if health_url.startswith("http://") or health_url.startswith("https://"): services[app_id] = health_url else: - if not health_url.startswith("/"): - health_url = "/" + health_url - services[app_id] = f"http://appfactory-caddy/apps/{app_id}{health_url}" return services