fix: fallback to local targets when newt targets are unhealthy

This commit is contained in:
Fizza-Mukhtar
2026-03-01 01:43:15 -08:00
parent 66c377a5c9
commit f36cf06e26
2 changed files with 20 additions and 1 deletions

View File

@@ -679,6 +679,11 @@ export async function getTraefikConfig(
return false;
}
// Local sites don't report online status, always include them as fallback
if (target.site.type === "local") {
return true;
}
// If any sites are online, exclude offline sites
if (anySitesOnline && !target.site.online) {
return false;
@@ -801,6 +806,11 @@ export async function getTraefikConfig(
if (!target.enabled) {
return false;
}
// Local sites don't report online status, always include them as fallback
if (target.site.type === "local") {
return true;
}
// If any sites are online, exclude offline sites
if (anySitesOnline && !target.site.online) {