Multiple hosts in traefik.http.routers.app.rule does not work in v3?

Hi.
My docker container running Traefik has been upgraded to v3, and one of my containers behind it has stopped working.

Traefik gives me this error:

error while adding rule Host("piwigo.domain.tld", "album.domain.tld", "foto.domain.tld"): error while adding rule Host: unexpected number of parameters; got 3, expected one of [1]

The label in question is: traefik.http.routers.app.rule
And it looks like this:

Host("piwigo.domain.tld", "album.domain.tld", "foto.domain.tld")

This was no problem in Traefik v2, but it is a problem in v3 apparently

How is the syntax supposed to look like for this in Traefik v3?

Thanks

Only one domain per Host() in v3, use:

.rule=Host() || Host()

Migration doc

Works like a charm!

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.