Is this the correct way to convert my static routes to servers? I had it working in v1.7 using the below:
[backends]
[backends.test]
[backends.test.servers.server1]
url = "http://10.0.0.1:1234"
[backends.test2]
[backends.test2.servers.server1]
url = "http://10.0.0.2:80"
[frontends]
[frontends.test1]
backend = "test1"
[frontends.test.routes.test]
rule = "Host:test1.domain.com"
[frontends.test2]
backend = "test2"
[frontends.test2.routes.test2]
rule = "Host:test2.domain.com"
I have added this to my v2 traefik.toml
[http.routers]
[http.routers.test1]
rule = "Host(`test1.domain.com`)"
service = "test1"
[http.routers.test2]
# By default, routers listen to every entry points
rule = "Host(`test2.domain.com`)"
service = "test2"
[http.services]
[http.services.test1]
[[http.services.test1.servers]]
url = "http://10.0.0.1:1234"
[http.services.test2]
[[http.services.test2.servers]]
url = "http://10.0.0.2:80"
However it does not seem to be working. I would also like these sites to automatically get their SSL cert from LE as well, as they did previously.
Suggestions?