Cloudflare provider obtains lets encrypt certs not for all domains i want it to optain for

bot closed my issue for funny reasosn

Hello @vodolaz095,

In your issue:

expect traefik to obtain certs for all subdomains of

So you want to request every certificate possible? like billions of certificates?

There is a warning in our documentation for this reason:

Host rules can be used to generate certificates. HostRegexp cannot.

i expect traefik to obtain certs for sites it serves.
I mean, i pointed domain (by setting A records in cloudflare)
to my nginx container, when i open in browser, traefik firstly serves self signed cert (its ok), but than it tries to obtain certificate for subdomain.

I don't think it will require to obtain billions of certificates, since there is approx 10+ a records pointing to same IP on which traefik and nginx containers are running.

Question is this:
how does traefik finds domains for which it had to obtain certs?
1.from frontend rules in labels of services?
2. or does traefik finds domain for cert obtaining from HOST header?

if its 1, its imho big drawback, limiting use of traefik, if its second, i agree, that it can be abuse prone (when visitors makes me to obtain billions of certs if i use catchall DNS records - like subdomain *).

So, to summarize things i have said:

is it possible to make traefik

when i have used means to prohibit it by proper DNS setup

can this fix my issue?

when i enabled this parameter [[]] to obtain certs for catchall domains, and emptied acme.json file, it seems to not get new certs at all.

debug = true

logLevel = "DEBUG"
defaultEntryPoints = ["https","http"]

  address = ":80"
  compress = true
    entryPoint = "https"
  address = ":443"
  compress = true


endpoint = "unix:///var/run/docker.sock"
domain = ""
watch = true
exposedByDefault = false
swarmMode = true
swarmModeRefreshSeconds = 15
network = "oldcity"

address = ":8080"

email = ""
storage = "acme.json"
entryPoint = "https"
onHostRule = true

main = "*"
sans = [""]

email = ""
storage = "acme.json"
entryPoint = "https"
onHostRule = true

main = "*"
sans = [""]

# [acme.tlsChallenge]

#entryPoint = "http"

provider = "cloudflare"
resolvers = ["", ""]
delayBeforeCheck = 5

i have feeling either there is something badly described in documentation, or traefik is not suitabe for tasks i require.

probably i should be back to nginx with wildcart cert like i used before, and nodejs script keeping proxy configs up to date and restarting nginx.