How to install discourse with nginx as proxy on specific path?

Right. At first I was thinking that I’m not using any internal httpd, as I don’t expose ports, but - silly me - I still use socket which has to be connected to something.

So I have to use rewrite on both of them?