npm install @envov/proxy -g
touch ./proxy.ini
[: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:888
proxy ./proxy.ini
The weight of the configuration file is:
- first:proxy configuration-file.ini
- second:proxy.ini file under proxy command directory
- third:~/proxy.ini