i switched my raspi server from nginx to caddy. the configurations for reverse proxy to the activitypub and calendar server are absurdly simple compared to nginx. It does help that you don't have any of the ssl junk in the config 
https://delek.ca/poasts/5fe.Eho 












