Let’s Encrypt will only attempt to connect to your server on port 80 for the HTTP challenge, and port 443 for the ALPN challenge.
If you can’t make your server accessible on either of these ports, you’ll need to use the DNS challenge, which requires adding a plugin for your DNS provider (you can do this with the builder Docker image variant, see the docs on Docker Hub) and configure Caddy to use the that DNS plugin. There’s more instructions here:
This is all explained in the docs here:
FYI, all of these lines are redundant and unnecessary. Caddy already passes through the headers on its own.
Thanks for your answer. Perviously I’ve successfully recieved certificate by http challenge on 8080 port That works on caddy 2.1
But never mind… if this is a new rules it’s ok))