0.0.3 • Published 3 years ago
@envov/proxy v0.0.3

install
npm install @envov/proxy -g 1、Create any file anywhere, for example:
touch ./proxy.ini2、 Simple rules in it
[:888/typicode]
target=https://jsonplaceholder.typicode.com
# proxy https://jsonplaceholder.typicode.com on http://127.0.0.1:888/typicode
[:999/test]
target=https://jsonplaceholder.typicode.com/posts/1
# proxy https://jsonplaceholder.typicode.com/posts/1 on http://127.0.0.1:999/test
[:888]
target=https://jsonplaceholder.typicode.com/posts/1
# proxy https://jsonplaceholder.typicode.com/posts/1 on http://127.0.0.1:8883、proxy
proxy ./proxy.iniothers
The weight of the configuration file is:
- first:proxy configuration-file.ini
- second:proxy.ini file under proxy command directory
- third:~/proxy.ini