diff --git a/app/main.py b/app/main.py index d878f41..fa7d463 100644 --- a/app/main.py +++ b/app/main.py @@ -53,7 +53,14 @@ def get_app_services(): for row in rows: app_id = row["id"] health_url = row["health_url"] or "/health" - + + if health_url.startswith("https://appfactory-caddy"): + health_url = health_url.replace( + "https://appfactory-caddy", + "http://appfactory-caddy", + 1, + ) + if health_url.startswith("http://") or health_url.startswith("https://"): services[app_id] = health_url else: