I have a REST API served by a node express server at port 3000. Using socket.io, there is also a websocket attached to the express server on that same port.
In order to scale our node server, we've decided to split off the websocket server into an entirely new process, and have it hosted on a new port (3002)
How do I configure nginx to forward all websocket messages to the new process on port 3002, while forwarding everything else to the original REST API server on port 3000?
via Dany Joumaa
No comments:
Post a Comment