today i learned that if you are reverse-proxying :80 and :443 with PROXY protocol to a caddy set up like this...
{
servers {
listener_wrappers {
proxy_protocol {
allow ...
}
tls
}
}
}
then, in addition to your https site definitions, you also have to toss this line in there to make proxy_protocol apply to the automatic http->https redirect that caddy sets up
:80 { }
https://caddyserver.com/docs/caddyfile/options#:~:text=unless%20you%20explicitly%20declare











)