希望有人可以帮助我,我正在尝试在Traefik中设置正向身份验证,但是由于某些原因,当我请求我的网页时,它会被完全忽略。我已经在traefik.toml中将其设置为以下内容:
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.auth.forward]
address = "http://172.19.0.5:8080"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.auth.forward]
address = "http://172.19.0.5:8080"
[entryPoints.https.tls]
minVersion = "VersionTLS12"
cipherSuites =
[
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
]
[acme]
#shorten this to save space, let me know if it is important...
[file]
[backends]
[backends.backend1]
[backends.backend1.servers.app1]
url = "https://internal-lan-ip"
[frontends.frontend1]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.headers]
HostsProxyHeaders = ["X-Forwarded-Hosts"]
SSLRedirect = true
FrameDeny = true
STSSeconds = 315360000
STSIncludeSubdomains = true
ContentTypeNosniff = true
BrowserXssFilter = true
ReferrerPolicy = "same-origin"
[frontends.frontend1.routes.app1]
rule = "Host:app1.my-domain.com"
有人可以帮助我为什么不提取请求/不转发请求进行身份验证吗?