【发布时间】:2019-08-13 07:44:51
【问题描述】:
与问题“Traefik and Let's Encrypt on non default http port 80?”不同,我在默认 http 端口上运行 Traefik (> 1.7)。
我想为8448 上的一项服务的 HTTP 流量配置一个额外的入口点。所以我已将此入口点添加到我的traefik.toml:
defaultEntryPoints = ["http", "https"]
logLevel = "DEBUG"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[entryPoints.synapse]
address = ":8448"
[entryPoints.synapse.tls]
[api]
[acme]
email = "webmaster@example.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "example.com"
watch = true
exposedByDefault = false
我的 docker 服务通过以下标签使用此端口:
labels:
- traefik.enable=true
- traefik.clients.frontend.rule=Host:matrix.example.com
- traefik.clients.port=8008
- traefik.clients.docker.network=proxy
- traefik.federation.frontend.rule=Host:matrix.example.com
- traefik.federation.port=8448
- traefik.federation.docker.network=proxy
- traefik.federation.frontend.entryPoints=synapse
不幸的是,Traefik 根本没有公开这个端口,尽管我的 docker 容器确实这样做了。日志没有显示任何错误,但显示入口点是由 Traefik 设置的。
有人知道我做错了什么吗?
该设置按预期适用于其他入口点。
【问题讨论】: