【问题标题】:What is the different between traefik.domain and traefik.frontend.rule=Hosttraefik.domain 和 traefik.frontend.rule=Host 有什么区别
【发布时间】:2018-08-17 03:16:54
【问题描述】:

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

【问题讨论】:

    标签: traefik


    【解决方案1】:

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

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

    这是记录在here

    【讨论】:

    • 有没有关于默认前端规则的文档?
    • 添加了文档链接
    • 我以为文档在traefik.domain 行。我现在可以找到它。
    猜你喜欢
    • 2018-12-21
    • 2011-10-28
    • 2013-03-03
    • 1970-01-01
    • 2020-11-25
    • 2011-07-05
    • 1970-01-01
    • 2017-04-17
    • 2021-11-29
    相关资源
    最近更新 更多