Forward Proxy example
how to setup
- install dependecies
npm install
- install nginx if it has not been installed
brew install nginx
- modify nginx.conf file
- backup file before making changes
- location of nginx.conf file for mac is at
/usr/local/etc/nginx
- run nginx
brew services start nginx
- run server
node server.js
- send request
curl localhost:3001/hello
for client to server - send request
curl localhost:8081/hello
for client to proxy to server