fix multi-host router rule for traefik v3
v3 limits Host() to one parameter; chain with || for multiple. Error seen in the api@swarm router: "unexpected number of parameters; got 3". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
adb1bfe534
commit
aad3643a0f
1 file changed
+1
-1
@@ -46,7 +46,7 @@ services:
|
|||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=public"
|
- "traefik.docker.network=public"
|
||||||
- "traefik.constraint-label=public"
|
- "traefik.constraint-label=public"
|
||||||
- "traefik.http.routers.api.rule=Host(`api.t4t-gateway.com`,`t4t-gateway.com`,`www.t4t-gateway.com`)"
|
- "traefik.http.routers.api.rule=Host(`api.t4t-gateway.com`) || Host(`t4t-gateway.com`) || Host(`www.t4t-gateway.com`)"
|
||||||
- "traefik.http.routers.api.entrypoints=websecure"
|
- "traefik.http.routers.api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.api.tls.certresolver=le"
|
- "traefik.http.routers.api.tls.certresolver=le"
|
||||||
- "traefik.http.services.api.loadbalancer.server.port=8080"
|
- "traefik.http.services.api.loadbalancer.server.port=8080"
|
||||||
|
|||||||
Reference in new issue
Block a user