{
local_certs
order reverse_proxy before file_server
}
x.com, www.x.com {
tls internal
reverse_proxy https://xcancel.com {
header_up Host xcancel.com
}
}
I think I installed my caddy cert on my devices so the browser wouldn't throw a fit, but this works on my mobile devices as well with a dns record to point to this caddy instance (and a wireguard tunnel back home).
any improvements to this approach would be appreciated.