From 4cf907c572832dd996fa371b7a80a69e4328aff9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 27 Feb 2022 12:17:40 +0100 Subject: [PATCH] fix: do not remove coolify proxy --- src/lib/haproxy/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/haproxy/index.ts b/src/lib/haproxy/index.ts index 09d7badd7..0d1d14fd2 100644 --- a/src/lib/haproxy/index.ts +++ b/src/lib/haproxy/index.ts @@ -199,6 +199,13 @@ export async function checkProxyConfigurations() { backend_name: backendName, stats: { lastchg } } = stat; + const { fqdn } = await db.listSettings(); + if (fqdn) { + const domain = getDomain(fqdn); + if (backendName === domain) { + return; + } + } const application = await db.getApplicationById(name); if (!application) { const transactionId = await getNextTransactionId();