Hey everyone
I think I've found a regression while playing around with RC 1. Previously (in version 2.11
for example) it was possible to add multiple Host names to the Host
-Rule but not anymore in 3.0
:
error while adding rule Host(
host1.example.com
,host2.example.com
,host3.random.com
): error while adding rule Host: unexpected number of parameters; got 3, expected one of [1]
nginx:
image: nginx
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=Host(`host1.example.com`, `host2.example.com`, `host3.random.com`)"
- "traefik.http.routers.web.entryPoints=websecure"
- "traefik.http.routers.web.tls=true"
- "traefik.http.services.web.loadbalancer.server.scheme=https"
- "traefik.http.services.web.loadbalancer.server.port=443"
networks:
- traefik
The only way to accomplish something like this with Traefik 3.0 RC1 would be, to use the HostRegexp
-Rule.
Was this changed intentionally and just needs mentioning in the migration guide or was this change unintentional and should be fixed?