Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx #208

Closed
zimt28 opened this issue Dec 6, 2013 · 3 comments
Closed

nginx #208

zimt28 opened this issue Dec 6, 2013 · 3 comments

Comments

@zimt28
Copy link

zimt28 commented Dec 6, 2013

I could not find any info on this: When using pm2, does it make sense to use nginx to proxy requests? What might be benefits? I know about faster serving of static files, but are there any more? A negative aspect I found is that even having set the headers there seem to be problems with websockets.

(Yep, this is not an issue .. but there's not even a twitter account to ask)

@ptz0n
Copy link

ptz0n commented Dec 6, 2013

Serving web traffic is not something that pm2 covers in terms of features. This project is a process manager for Node.js applications.

You're looking for something like this: http://blog.argteam.com/coding/hardening-node-js-for-production-part-2-using-nginx-to-avoid-node-js-load/

@rlidwka
Copy link
Collaborator

rlidwka commented Dec 6, 2013

There are no issues with websockets, at least none that I know of. It has nothing to do with pm2.

Nginx has it's benefits, for example it serves static files real fast. But you should think for yourself, try both things and look how it turns out.

I think it would be a good idea to avoid nginx at the beginning and keep in mind its features. If at some point you feel that nginx can fit in there, just add it later.

(Yep, this is not an issue .. but there's not even a twitter account to ask)

node.js mailing list will work just fine for this particular question

@zimt28
Copy link
Author

zimt28 commented Dec 7, 2013

No, it's actually some kind of nginx config problem. Nginx forums might be a better place to ask, just asked in case people have had similar issues or any experience using nginx and websockets.

So I will just run pm2 alone and upgrade to using a nginx proxy if needed.
I close this issue for now, if there are any problems I'll try the mailing list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants