是否可以让 Traefik 处理多个证书/域

Is it possible to have Traefik handle multiple certificates/ domains

我的域名jstock.co DNS 和 SSL 证书由 Cloudflare 处理。

我有以下traefik.toml

defaultEntryPoints = ["http", "https"]

[web]
address = ":8080"
  [web.auth.basic]
  users = ["admin:xxx"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]
      [[entryPoints.https.tls.certificates]]
        CertFile = "/app/cert.pem"
        KeyFile = "/app/key.pem"

通过上述设置,traefik 能够重新路由以下流量以更正 docker 个容器


现在,我们又购买了一个域名wenote.me。它的 DNS 和 SSL 证书也由 Cloudflare 处理。

我想知道是否有可能重用现有的 Traefik 来处理来自 wenote.me 的流量?如果是这样,traefik.toml 应该是什么样子?

事情是这样的。

defaultEntryPoints = ["http", "https"]

[web]
address = ":8080"
  [web.auth.basic]
  users = ["admin:xxx"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]
      [[entryPoints.https.tls.certificates]]
        CertFile = "/app/cert.pem"
        KeyFile = "/app/key.pem"
      [[entryPoints.https.tls.certificates]]
        CertFile = "/app/wenote.me.cert.pem"
        KeyFile = "/app/wenote.me.key.pem"