Only allow nodes to pull with defined exitNodeID

This commit is contained in:
Owen
2025-10-19 10:46:25 -07:00
parent dcfd7f5443
commit 346183a23f
2 changed files with 2 additions and 7 deletions

View File

@@ -120,6 +120,7 @@ export async function getTraefikConfig(
and(
eq(targets.enabled, true),
eq(resources.enabled, true),
eq(sites.exitNodeId, exitNodeId),
or(
ne(targetHealthCheck.hcHealth, "unhealthy"), // Exclude unhealthy targets
isNull(targetHealthCheck.hcHealth) // Include targets with no health check record