I have a working caddy reverse proxy with auto tls as it is recommended. But I want it to use port 80 only when doing ACME, otherwise not.
While not doing ACME, it should just not listen at all.
3. Caddy version:
2.6.2
4. How I installed and ran Caddy:
install caddy package, write simple " hostname { reverse_proxy 127.0.0.1:1234 }" config. Run using included systemd unit.
Have firewall only allow incoming port 80 from external, not 443.
I want Caddy to handle ACME http-01 but not the site reachable to the outside.
Use DNS challenge!
I can’t, I don’t have DNS access for crazy reasons.
By default, Caddy uses port 80 only for the HTTP-01 challenge and to redirect to HTTPS. If you don’t want port 80 to be in use at all, you can disable it entirely and Caddy will then switch to using TLS-ALPN-01 instead. That challenge only uses port 443 and doesn’t depend on port 80 at all.
Sorry, but it’s necessary since we’ve been attacked by spam bots several times in the past where the volume was overwhelming – hundreds of spam replies and topics within an hour or two. So we limit new accounts until they grow in trust levels.