使用NGINX代理WebSocket



了解如何將NGINX設置為WebSockets或SocketIO應用程序的反向代理。

——————
部署節點播放列表:

19 comments
  1. I think you just helped me out tremendously. I use application manager for jump starting my node application which support showed me. However it doesn't work with websockets on my socket.io app that I have. I have many php applications running and don't want to disturb them so doing ngnix would need to be not disturbing my apache applications. I did your video earlier and killed all my php applications so I have ngnix installed but it's disabled. How can I do this same process just on apache to get websockets work. I have been looking for months and this is the closet video I could find even touching basis on my most biggest hurdle in development yet. It has halted all my nodejs applications because webrtc is the only reason I want to use node and because I can't get sockets configured on my centos 7 machine I have stopped for over 6 months now. Please advise you or anyone.

  2. Thanks for your awesome videos
    I have a graphql nodejs server which have just one endpoint. So how can I set up both http and websocket on one location. Because graphql only have one endpoint

  3. Can you do this with an another Node process, over a different port….Or it needs to be 8080? Is it possible for example to have another location block, where you would proxy pass websocet connection , over maybee 4000?

Comments are closed.