我想使用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
能给我个解决办法吗?谢谢。