Hi, is is possible to specify all domains for certificate in one place? I have about 10 routers for 10 services on one domain (or subdomain) and I'd like to have router only for wildcard cert + SANs.
I tried this:
[http.routers]
[http.routers.cert-domain1]
entryPoints = ["https"]
rule = "Host(`domain1.eu`)"
[http.routers.cert-domain1.tls]
certResolver = "cloudflare"
[[http.routers.cert-domain1.tls.domains]]
main = "*.domain1.eu"
sans = ["domain1.eu", "admin.domain1.eu", "app.domain1.eu"]
[http.routers.cert-domain2]
entryPoints = ["https"]
rule = "Host(`domain2.cz`)"
[http.routers.cert-domain2.tls]
certResolver = "cloudflare"
[[http.routers.cert-domain2.tls.domains]]
main = "*.domain2.cz"
sans = ["domain2.cz"]
[http.routers.cert-domain3]
entryPoints = ["https"]
rule = "Host(`domain3.cz`)"
[http.routers.cert-domain3.tls]
certResolver = "cloudflare"
[[http.routers.cert-domain3.tls.domains]]
main = "*.domain3.cz"
sans = ["domain3.cz"]
but it shows me errors:
time="2019-07-19T11:07:55Z" level=error msg="the service \"@file\" does not exist" entryPointName=https routerName=cert-thespixxyq@file
time="2019-07-19T11:07:55Z" level=error msg="the service \"@file\" does not exist" entryPointName=https routerName=cert-leoshusar@file
time="2019-07-19T11:07:55Z" level=error msg="the service \"@file\" does not exist" entryPointName=https routerName=cert-servispc-orechovuh@file
I also tried to assign service with no URLs and still nothing, it won't generate any certificate (acme.json is empty).
Any help would be appreciated!