Configure Caddy as if it were only a firewall and have it forward incoming request from an external hostname to a server inside the LAN that uses nginx

I am not good enoug to understand this, but below there is a post pointing at templates. And somewhere else I red that this SSI is important, will try your solution as is tonight