I am studying using a node-http-proxy proxy so that I can have our proxy server for requests to send 80 ports to our application server on port 8000. However, I am a bit confused why this is a good idea and what exactly is this setting will protect against security.
The note-http-proxy documentation discusses its use a lot as a way to redirect requests to an application with multiple ports or IP addresses. This would obviously be very useful, especially with a basic load balancing strategy in a circle. However, we only have one application on one port, so we do not need to do this.
If there is an important security reason why we should use this proxy server, then I would like to know what types of attacks it protects. In addition, we use socket.io, so if there is anything the proxy does to help the websocket server scale, I would like to understand this. We are unable to figure out how to run our application without sudo
(since all ports below 1024 require root access), so if at the moment there is no good reason to use a proxy server, we are just going to scrap in. If anyone knows how to run this application with a proxy server on port 80 without root access, this is also very useful. Thanks!
source share