fix: wh catchall for all
This commit is contained in:
parent
d66bae32d3
commit
6def46544c
@ -173,14 +173,14 @@ export async function proxyConfiguration(request: FastifyRequest<OnlyId>, remote
|
|||||||
const { id = null } = request.params;
|
const { id = null } = request.params;
|
||||||
const settings = await prisma.setting.findFirst();
|
const settings = await prisma.setting.findFirst();
|
||||||
if (settings.isTraefikUsed && settings.proxyDefaultRedirect) {
|
if (settings.isTraefikUsed && settings.proxyDefaultRedirect) {
|
||||||
traefik.http.routers['catchall'] = {
|
traefik.http.routers['catchall-http'] = {
|
||||||
entrypoints: ["web"],
|
entrypoints: ["web"],
|
||||||
rule: "HostRegexp(`{catchall:.*}`)",
|
rule: "HostRegexp(`{catchall:.*}`)",
|
||||||
service: "noop",
|
service: "noop",
|
||||||
priority: 1,
|
priority: 1,
|
||||||
middlewares: ["redirect-regexp"]
|
middlewares: ["redirect-regexp"]
|
||||||
}
|
}
|
||||||
traefik.http.routers['catchall'] = {
|
traefik.http.routers['catchall-https'] = {
|
||||||
entrypoints: ["websecure"],
|
entrypoints: ["websecure"],
|
||||||
rule: "HostRegexp(`{catchall:.*}`)",
|
rule: "HostRegexp(`{catchall:.*}`)",
|
||||||
service: "noop",
|
service: "noop",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user