What are the recommended Nginx settings
-
I have read a few different posts about recommended Nginx settings over the last month or so, but I did not see anything in the install guide.
Can a dev post a recommended setup or link to one in the install guide that I missed?
-
+1 That setup works great
-
@pichalite said in What are the recommended Nginx settings:
@JaredBusch https://docs.nodebb.org/en/latest/scaling/index.html#use-a-proxy-server-to-serve-static-assets
As my Nginx is on a different box, can I still do anything about the static settings like shown?
-
@pichalite How do I check whether my server is serving static content through nginx not nodebb? Thanks.
-
@audreybest That depends on your Nginx configuration. When you only pass the traffic to your NodeBB instance, it will be served by the internal NodeBB HTTP server (through Nginx). When you add pointers to the locations of the static files on your filesystem, then it will be served by Nginx directly.
Using the configuration as in the link of @pichalite will be the second case.
-
So with my NobeBB sitting on a different VM than my Nginx proxy I have no way to do anything about this?
-
@julian said in What are the recommended Nginx settings:
It is still possible, yes, but not really worth it. If they're on separate VMs, you'll need a local copy of NodeBB assets for nginx to serve (since nginx expects them to be on the same local machine).
Just confirming, thanks.