fix: traefik appwrite

This commit is contained in:
Andras Bacsai 2022-09-01 14:36:07 +02:00
parent 67e4a72a28
commit 1dc7355952

View File

@ -28,7 +28,7 @@ function configureMiddleware(
if (type === 'appwrite') { if (type === 'appwrite') {
traefik.http.routers[`${id}-realtime`] = { traefik.http.routers[`${id}-realtime`] = {
entrypoints: ['websecure'], entrypoints: ['websecure'],
rule: `PathPrefix(\`/v1/realtime\`)`, rule: `Host(\`${nakedDomain}\`) || Host(\`www.${nakedDomain}\`) && PathPrefix(\`/v1/realtime\`)`,
service: `${`${id}-realtime`}`, service: `${`${id}-realtime`}`,
tls: { tls: {
domains: { domains: {
@ -138,7 +138,7 @@ function configureMiddleware(
if (type === 'appwrite') { if (type === 'appwrite') {
traefik.http.routers[`${id}-realtime`] = { traefik.http.routers[`${id}-realtime`] = {
entrypoints: ['web'], entrypoints: ['web'],
rule: `PathPrefix(\`/v1/realtime\`)`, rule: `Host(\`${nakedDomain}\`) || Host(\`www.${nakedDomain}\`) && PathPrefix(\`/v1/realtime\`)`,
service: `${id}-realtime`, service: `${id}-realtime`,
middlewares: [] middlewares: []
}; };