fix: Fix proxy every 10 secs

This commit is contained in:
Andras Bacsai 2022-02-27 11:52:05 +01:00
parent c340f6436f
commit 980dea64e0

View File

@ -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({});