Separating out the nginx web server

I’ve seen a few examples here of putting Nginx in front of Discourse as a reverse proxy. This might be a good approach as you leave all of the Discourse part alone.

However, you do end up with back to back Nginx instances which is not efficient or required.

I wondered if anyone here has disabled the Nginx within discourse and uses an external Nginx which then handles all of discourse’s requirements and chains upstream.

Maybe this is too complicated and the extra Nginx makes sense. :confused:

This is the correct hypothesis. Nginx and Discourse are fairly tightly connected. You don’t want to try to do all of that stuff yourself in your own Nginx.