traefik.domain 和 traefik.frontend.rule=Host 有什么区别

What is the different between traefik.domain and traefik.frontend.rule=Host

traefik.frontend.rule=Host:example.com 将请求重定向到 example.com 到该后端。那么traefik.domain的用法是什么?

默认前端规则是 Host:{containerName}.{domain} 或 Host:{service}.{project_name}.{domain}

假设您使用 Docker 作为提供者,设置 traefik.frontend.rule=foobar.example.com 等同于使用名为 foobar 的容器设置 traefik.domain=exemple.com

这已记录在案 here