fix: preview wbh

This commit is contained in:
Andras Bacsai 2022-11-04 12:08:26 +01:00
parent 1b753a4020
commit d66bae32d3

View File

@ -344,8 +344,8 @@ export async function proxyConfiguration(request: FastifyRequest<OnlyId>, remote
const nakedDomain = previewDomain.replace(/^www\./, '');
const pathPrefix = '/'
traefik.http.routers = { ...traefik.http.routers, ...generateRouters(`${container}-${port || 'default'}`, domain, nakedDomain, pathPrefix, isHttps, isWWW, dualCerts, isCustomSSL) }
traefik.http.services = { ...traefik.http.services, ...generateServices(id, `${container}-${port || 'default'}`, port) }
traefik.http.routers = { ...traefik.http.routers, ...generateRouters(`${container}-${port || 'default'}`, previewDomain, nakedDomain, pathPrefix, isHttps, isWWW, dualCerts, isCustomSSL) }
traefik.http.services = { ...traefik.http.services, ...generateServices(container, container, port) }
}
}
}