Greetings,
I recently had an issue where caddy would start fine, but most of my services were blocked. By debugging I found that I was missing a single curly brace (which I thought caddy should have detected) to end a reverse proxy block. My config follows the flow below, though it is much larger.
*.domain.com {
tls {
dns cloudflare REDACTED
}
@test host test.domain.com
handle @test {
reverse_proxy 192.168.50.201:9200 {
header_up Host {hostport}
transport http {
tls_insecure_skip_verify
}
}
}
This block will not show an error when starting caddy. Can you spot the missing curly brace to end the reverse_proxy directive?
Any @ domains in front of the domain block in question still functioned, But and domain blocks after it would only show a white page.
By adding the closing curly brace everything started to work.
Reloading caddy worked.
Starting caddy worked.
Stoping caddy did not work, it just hung which was my first clue.
Is this a bug in caddy? Version=2.11.4