В моем файле traefik acme.json есть домены, которые я никогда раньше не видел.
- Есть ли рекомендуемый способ удаления доменов из acme.json?
- Нужно ли перезапускать traefik после removel?
- Есть ли у кого-нибудь подсказки для менякак это возможно?Возможно ли добавить их другим людям?
Файл: 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"
},