在阅读了提到traefik.frontend.auth.basic的https://github.com/containous/traefik/issues/751和https://github.com/containous/traefik/pull/1147之后,我尝试为traefik前端(而不是入口点)设置基本身份验证。
都不是
[frontends.kibana]
backend = "kibana"
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"
[frontends.kibana.auth]
basic = "kibana:$apr1$cHAIJt0o$..."nor
[frontends.kibana]
backend = "kibana"
auth.basic = "kibana:$apr1$cHAIJt0o$..."
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"是有效的。如何在前端级别指定基本身份验证?
发布于 2018-01-07 01:33:06
就像这样:
[frontends.kibana]
backend = "kibana"
basicAuth = ["kibana:$apr1...", "anabik:$apr1..."]
[frontends.kibana.routes.nas]
rule = "Host:kibana.mydomain.io"https://stackoverflow.com/questions/48129457
复制相似问题