Traefik让我们加密通配符证书

时间:2018-12-07 06:12:00

标签: docker lets-encrypt traefik

我想使用traefik生成通配符证书,但不起作用。

这是我的traefik.toml

[acme]
email = "myemail"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
storageFile = "/etc/traefik/acme/acme.json"
entryPoint = "https"
onDemand = true
#OnHostRule = true
  [acme.httpChallenge]
  entryPoint = "http"

[[acme.domains]]
  main = "*.mydomain.com"
  sans = ["mydomain.com"]


[web]
address = ":8080"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "localhost"
watch = true
swarmmode = true
exposedbydefault = false

能给我个解决办法吗?谢谢。

0 个答案:

没有答案