From aad3643a0f76f439b89a1161968313662ddaa890 Mon Sep 17 00:00:00 2001 From: Felix Faerber Date: Wed, 27 May 2026 11:01:24 +0300 Subject: [PATCH] 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) --- hostinger/prod-stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostinger/prod-stack.yaml b/hostinger/prod-stack.yaml index 0e6eaee..3dccfad 100644 --- a/hostinger/prod-stack.yaml +++ b/hostinger/prod-stack.yaml @@ -46,7 +46,7 @@ services: - "traefik.enable=true" - "traefik.docker.network=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.tls.certresolver=le" - "traefik.http.services.api.loadbalancer.server.port=8080"