Basic Caddy Upgrade Docker with cloudflare

So reading down that issue I see th eposter has:

*.theblazehen.com {
  tls {
    ask http://httpstat.us/200
  }
  reverse_proxy / {host}.home:80
}

Where I have:

(tls) {
        tls letsencrypt@domain.com {
                dns cloudflare ${CLOUDFLARE_API_KEY)
                wildcard
        }
}

But then on

https://unifi.domain.com {
        import tls
        log / stdout "Unifi          : {common}"
        errors stdout
        reverse_proxy / https://192.168.10.41:8444/ {
                insecure_skip_verify
                transparent
        websocket
        }
}

I import the tls entry. Or would I now go:

*.domain.com {
      tls {
                tls letsencrypt@domain.com {
                 dns cloudflare ${CLOUDFLARE_API_KEY)
                wildcard
         }
      }
     https://unifi.domain.com {
         reverse_proxy / https://192.168.10.41:8444/ {
          insecure_skip_verify
         transparent
         websocket
      }
   }
}

And put them all under the *.domain.com entry?

Pleae excuse the json, I’m hoping I’ve structure it right, I write it in the post rather than in a real file to try.