Skip to content

Envov/proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iShot2022-04-14_17.03.39.png

install

npm install @envov/proxy -g 

1、Create any file anywhere, for example:

touch ./proxy.ini

2、 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:888

3、proxy

proxy ./proxy.ini

others

The weight of the configuration file is:

  • first:proxy configuration-file.ini
  • second:proxy.ini file under proxy command directory
  • third:~/proxy.ini