From afde00a4bee93ba355fde072eda1f1d937d1a851 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 4 Nov 2022 11:44:04 +0100 Subject: [PATCH] fix: websecure redirect --- apps/api/src/routes/webhooks/traefik/handlers.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index ef3770868..2cdc05051 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -180,6 +180,13 @@ export async function proxyConfiguration(request: FastifyRequest, remote priority: 1, middlewares: ["redirect-regexp"] } + traefik.http.routers['catchall'] = { + entrypoints: ["websecure"], + rule: "HostRegexp(`{catchall:.*}`)", + service: "noop", + priority: 1, + middlewares: ["redirect-regexp"] + } traefik.http.middlewares['redirect-regexp'] = { redirectregex: { regex: '(.*)',