Update app/main.py

This commit is contained in:
2026-06-12 09:35:26 +00:00
parent a2b79e4774
commit 04d1f2d166
+7
View File
@@ -54,6 +54,13 @@ def get_app_services():
app_id = row["id"] app_id = row["id"]
health_url = row["health_url"] or "/health" 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://"): if health_url.startswith("http://") or health_url.startswith("https://"):
services[app_id] = health_url services[app_id] = health_url
else: else: