gpt4 book ai didi

traefik - 如何指定每个前端的基本身份验证

转载 作者:行者123 更新时间:2023-12-05 00:13:50 24 4
gpt4 key购买 nike

已阅读 https://github.com/containous/traefik/issues/751https://github.com/containous/traefik/pull/1147提到traefik.frontend.auth.basic我正在尝试为每个 traefik 前端(不是入口点)设置基本身份验证。

两者都不

[frontends.kibana]
backend = "kibana"
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"
[frontends.kibana.auth]
basic = "kibana:$apr1$cHAIJt0o$..."

也不
[frontends.kibana]
backend = "kibana"
auth.basic = "kibana:$apr1$cHAIJt0o$..."
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"

正在工作。如何在前端级别指定基本身份验证?

最佳答案

像那样:

[frontends.kibana]
backend = "kibana"
basicAuth = ["kibana:$apr1...", "anabik:$apr1..."]
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"

关于traefik - 如何指定每个前端的基本身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48129457/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com