From 6def46544c6484f1cf15776790408fe4e4f99b3b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 4 Nov 2022 12:11:04 +0100 Subject: [PATCH] fix: wh catchall for all --- apps/api/src/routes/webhooks/traefik/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index 432380e08..fc3c4ade6 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -173,14 +173,14 @@ export async function proxyConfiguration(request: FastifyRequest, remote const { id = null } = request.params; const settings = await prisma.setting.findFirst(); if (settings.isTraefikUsed && settings.proxyDefaultRedirect) { - traefik.http.routers['catchall'] = { + traefik.http.routers['catchall-http'] = { entrypoints: ["web"], rule: "HostRegexp(`{catchall:.*}`)", service: "noop", priority: 1, middlewares: ["redirect-regexp"] } - traefik.http.routers['catchall'] = { + traefik.http.routers['catchall-https'] = { entrypoints: ["websecure"], rule: "HostRegexp(`{catchall:.*}`)", service: "noop",