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