Edit: I just tried again, and everything is working as expected. Thx anyway!
The file (mp3) is part of a post, not a profile picture.
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
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.
@JasperNL Thanks, I mean I have done the config, but how can I check this config works or not? How can I know whether nginx serves static content or nodebb serves static after using the configuration?
If served by NodeBB, the response header X-Powered-By is sent (with the value "NodeBB").
With nginx, it's not. Hope that helps
So with my NobeBB sitting on a different VM than my Nginx proxy I have no way to do anything about this?
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).