Docker swarm traefik acme.json管理(删除未知域)

时间:2019-01-22 22:30:25

标签: docker ssl-certificate docker-swarm traefik

我的traefik acme.json文件中包含我从未见过的域。

  1. 是否存在从acme.json中删除域的推荐方法?
  2. 移除后我必须重新启动traefik吗?
  3. 有人对我有暗示吗?有可能 供其他人添加?
  

文件:traefik.toml

checkNewVersion = true
defaultEntryPoints = ["http", "https"]

# This section enable LetsEncrypt automatic certificate generation / renewal
[acme]
email = "webmaster@example.com"
storage = "acme.json" # or "traefik/acme/account" if using KV store
entryPoint = "https"
acmeLogging = true
onDemand = true
OnHostRule = true
[acme.httpChallenge]
entryPoint = "http"

[[acme.domains]]
  main = "example.com"

# Redirect all HTTP to HTTPS (why wouldn't you?)
[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[web]
address = ":8080"
watch = true

[docker]
endpoint = "tcp://127.0.0.1:2375"
domain = "example.com"
watch = true
swarmmode = true
  

文件:acme.json

{
  "Account": {
    "Email": "webmaster@example.com",
    "Registration": {
      "body": {
        "status": "valid",
        "contact": [
          "mailto:webmaster@example.com"
        ]
      },
      "uri": "https://acme-v02.api.letsencrypt.org/acme/acct/7411"
    },
    "PrivateKey": "MyPrivateKey_Dis8aOkwwynKgBJcOmHXEpgK0CR/S8",
    "KeyType": "4096"
  },
  "Certificates": [
    {
      "Domain": {
        "Main": "example.com",
        "SANs": null
      },
      "Certificate": "MyCertificatepFTmNwZGtmcTBzUjVjM",
      "Key": "MyKeyWjdvbE1BMEdDU3FHU0l"
    },
    {
      "Domain": {
        "Main": "domain-i-dont-know.com",
        "SANs": null
      },
      "Certificate": "cert",
      "Key": "key"
    },

0 个答案:

没有答案