I’ve been reading about nginx recently and I came across the proxy_cache directive that I haven’t seen in any of the nginx Meteor configs online. Is there a reason for that, or would it be a good idea to use it?
With the only thing to not cache being the route /?
Are there any security concerns using this cache such as caching users’ private data? How does the cache work with websockets?
Also, I’ve nginx configs that assume that the cached files are on the server running nginx already, but if the server is dedicated to only running nginx this doesn’t work, so is proxy_cache then the way to do this?
Caching with nginx is great, but it’s intended to help out with serving static files. Whether its use will make much of an impact in your environment really depends on the nature of your application, and how much static content your serving up. Check out nginx’s great 5 Performance Tips for Node.js Applications article, for a good explanation of how this works, and when it makes sense to use it.
On this point, is there something in the Meteor guide or related ‘official’ documentation about how to reverse proxy with nginx when the app is on Galaxy? The https://galaxy.meteor.com/help/configuring-dns seems to be missing?
I use the reverse proxy for my other, non meteor services quite happily, and really like the idea of having nothing core facing the internet.
did you find any documentation? Or could you make it work by yourself?
Do you have a config file to share?
I am looking for a nginx setup and I’m not familiar with server setup at all…