While setting up a pihole on my local network, I noticed an odd behavior with the default site.
If I wrote the following in my caddy file, it would attempt to acquire a TLS certificate for pi.hole:
:80, http://pi.hole {
reverse_proxy localhost:8001
}
However, if I broke the blocks into separate entries, like this:
:80 {
reverse_proxy localhost:8001
}
http://pi.hole {
reverse_proxy localhost:8001
}
Then it worked as expected (no tls certificate issued).
I'm currently running Caddy v2.3.0 on Ubuntu 20.04 (arm64).