YAML Syntax for multiple hosts

What is to correct definition for multiple hosts in YAML syntax?

routers:
  foo:
    rule: "Host(`???`)"

Hello,

http:
  routers:
    foo:
      rule: "Host(`example.com`, `example.org`)"

or

http:
  routers:
    foo:
      rule: "Host(`example.com`) || Host(`example.org`)"

https://docs.traefik.io/v2.2/routing/routers/#rule

1 Like