fix: traefik appwrite
This commit is contained in:
parent
67e4a72a28
commit
1dc7355952
@ -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: []
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user