WIP: Traefik?!

This commit is contained in:
Andras Bacsai
2022-05-12 13:02:14 +02:00
parent 60a428a952
commit 6bba37c36d
7 changed files with 216 additions and 2 deletions

View File

@@ -6,11 +6,14 @@ export default async function (): Promise<void | {
body: { message: string; error: string };
}> {
try {
const settings = await prisma.setting.findFirst();
// Coolify Proxy
const localDocker = await prisma.destinationDocker.findFirst({
where: { engine: '/var/run/docker.sock' }
});
if (localDocker && localDocker.isCoolifyProxyUsed) {
console.log(settings.disableHaproxy);
if (localDocker && localDocker.isCoolifyProxyUsed && !settings.disableHaproxy) {
console.log('asd');
await startCoolifyProxy('/var/run/docker.sock');
}
// TCP Proxies