docklet/doc/devdoc/proxy-control.md

1.2 KiB

Some Note for configurable-http-proxy usage

intsall

sudo apt-get install nodejs nodejs-legacy npm
sudo npm install -g configurable-http-proxy

start

configurable-http-proxy -h  : for help
configurable-http-proxy --ip IP \
				    	--port PORT \
				     	--api-ip IP \
				    	--api-port PORT \
				    	--default-target http://IP:PORT \
				    	--log-level debug/info/warn/error

default ip:port is 0.0.0.0:8000, default api-ip:api-port is localhost:8001

control route table

get route table

add/set route table

delete route table line