https://github.com/catdad/node--proxy
a super simple proxy for when you need one in a pinch
https://github.com/catdad/node--proxy
Last synced: about 2 months ago
JSON representation
a super simple proxy for when you need one in a pinch
- Host: GitHub
- URL: https://github.com/catdad/node--proxy
- Owner: catdad
- Created: 2014-07-14T03:08:50.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-04T21:54:11.000Z (about 9 years ago)
- Last Synced: 2025-02-16T12:57:29.660Z (4 months ago)
- Language: JavaScript
- Size: 221 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node Proxy
A super simple proxy for when you need one in a pinch.## How to use
1. Install [Node.js](http://nodejs.org/).
1. Download [this repo](https://github.com/catdad/node--proxy/archive/master.zip) and unzip it.
1. Run `npm install`
1. Edit `config.json` to add your proxy table, as such:```json
[{
"localPort": 8888,
"remoteProtocol": "http",
"remoteHost": "127.0.0.1",
"remotePort": 80
}]
```_This will result in sending all `localhost:8888` traffic to `127.0.0.1:80`._
1. Run using `node app.js`.
You can add multiple proxy targets, as long as they all have a unique local port.