可以将 traefik 仪表板设置为通过 HTTPS 侦听吗?
Can the traefik dashboard be setup to listen over HTTPS?
我可以在 http://localhost:8080/ which is great. However, what if I wanted to access it at https://localhost:8080/(或其他端口,例如 8443)访问我的仪表板。我该怎么做?
我试过:
[entryPoints.traefik]
address = ":8080"
[entryPoints.traefik.tls]
[[entryPoints.traefik.tls.certificates]]
certFile = "C:/Certs/server.crt"
keyFile = "C:/Certs/server.key"
然而,这似乎并没有改变什么。我仍然可以通过 http 访问,尝试 https 时出现错误 "This site can’t provide a secure connection".
这似乎没有在任何地方记录,所以也许这是不可能的?
确保您的配置正确:
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.foo]
address=":8080"
[entryPoints.foo.tls]
[[entryPoints.foo.tls.certificates]]
certFile = "C:/Certs/server.crt"
keyFile = "C:/Certs/server.key"
[api]
entrypoint="foo"
https://docs.traefik.io/configuration/api/#authentication
您的证书必须与您的域匹配。
我可以在 http://localhost:8080/ which is great. However, what if I wanted to access it at https://localhost:8080/(或其他端口,例如 8443)访问我的仪表板。我该怎么做?
我试过:
[entryPoints.traefik]
address = ":8080"
[entryPoints.traefik.tls]
[[entryPoints.traefik.tls.certificates]]
certFile = "C:/Certs/server.crt"
keyFile = "C:/Certs/server.key"
然而,这似乎并没有改变什么。我仍然可以通过 http 访问,尝试 https 时出现错误 "This site can’t provide a secure connection".
这似乎没有在任何地方记录,所以也许这是不可能的?
确保您的配置正确:
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.foo]
address=":8080"
[entryPoints.foo.tls]
[[entryPoints.foo.tls.certificates]]
certFile = "C:/Certs/server.crt"
keyFile = "C:/Certs/server.key"
[api]
entrypoint="foo"
https://docs.traefik.io/configuration/api/#authentication
您的证书必须与您的域匹配。