0.0.2 • Published 5 years ago

parallel-proxy v0.0.2

Weekly downloads
14
License
-
Repository
github
Last release
5 years ago

Proxy

Install

npm install parallel-proxy -g

Config

Proxy uses rc for config. For example, you can put the .proxyrc config file to a top level folder:

{
	"port": 2803,
	"prod": {
		"port": 80,
		"host": "localhost"
	},
	"dev": {
		"port": 81,
		"host": "localhost"
	}
}

It will open the proxy on 2803 port, will forward all input traffic to a production localhost:80 server and to a development server localhost:81, all output traffic will be forwarded from the production server localhost:80, and all output tfaffic from the delepment server localhost:81 will be dropped.

Run

parallel-proxy --config conf.json

Run as daemon

Use forever if you want, but the repo contais two script, start.sh and stop.sh which uses better solution sdt. Before using them you must install sdt.

npm install sdt
0.0.2

5 years ago

0.0.1

9 years ago

0.0.0

10 years ago