https://github.com/dnbard/node-piper
NodeJS Proxy Server
https://github.com/dnbard/node-piper
Last synced: 10 months ago
JSON representation
NodeJS Proxy Server
- Host: GitHub
- URL: https://github.com/dnbard/node-piper
- Owner: dnbard
- Created: 2015-07-11T15:06:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-12T10:26:11.000Z (almost 11 years ago)
- Last Synced: 2025-01-26T05:41:19.774Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node Piper
NodeJS proxy server
This server will proxy incoming request to another server and then return its response.
## How to run
* Clone the code
```
git clone https://github.com/dnbard/node-piper.git
cd node-piper
```
* Install dependencies
```
npm install
```
* Specify the target server url and run proxy server
```
TARGT_URL=%TARGET_URL% node server.js
```
` %TARGET_URL% ` - path to another server. ` %TARGET_URL% ` should not have ending backslash!
In example:
```
TARGET_URL=https://api.example.com node server.js
```
* Optionaly: you can define filter RegExp with `FILTER` variable. All requests with url that matches the expression is going to be filtered.