That's interesting, because I was finding guides for traefik and caddy but not nginx (specifically swag in my case)
The issue I was having, in case it helps you, is that I was trying to expose 8448 on my synapse container which doesn't have SSL instead of on my SWAG container and then redirect to my synapse one.