From 980dea64e032762f116cd1d30a44c4cd80e49969 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 27 Feb 2022 11:52:05 +0100 Subject: [PATCH] fix: Fix proxy every 10 secs --- src/lib/queues/proxy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/queues/proxy.ts b/src/lib/queues/proxy.ts index 45363285a..074ac55ab 100644 --- a/src/lib/queues/proxy.ts +++ b/src/lib/queues/proxy.ts @@ -3,6 +3,7 @@ import { getApplicationById, prisma, supportedServiceTypesAndVersions } from '$l import { dockerInstance } from '$lib/docker'; import { checkContainer, + checkProxyConfigurations, configureCoolifyProxyOn, configureProxyForApplication, configureSimpleServiceProxyOn, @@ -16,6 +17,11 @@ import * as db from '$lib/database'; // import { generateRemoteEngine } from '$lib/components/common'; export default async function () { + try { + await checkProxyConfigurations(); + } catch (error) { + console.log(error); + } try { // Check destination containers and configure proxy if needed const destinationDockers = await prisma.destinationDocker.findMany({});