A https proxy server powered by deno
If you have deno. This is 2 way to use proxy server.
deno run --unstable --allow-net --allow-read https://raw.githubusercontent.com/skyyangyun/https-proxy/main/proxy.js
install:
deno install --unstable --allow-net --allow-read https://raw.githubusercontent.com/skyyangyun/https-proxy/main/proxy.js
run locally:
proxy
download releases package on the right
run program:
proxy
proxy address would print to console like this:
Listening on http://:::8000/
By default, proxy server run in HTTP mode. To use HTTPS mode, you need use two flag:
--certFile=<certFilePath>
and --keyFile=<keyFilePath>
example:
proxy --cert=./fullchain.cer --key=./example.com.key
To use basic authorization, you need assign --auth=<authFilePath>
flag,
you can check this repository authorization
file for example.
proxy --auth=./authorization
loaded valid user number would print when program boot.
Listening on http://:::8000/
[Warning] pass basic authorization on HTTP is unsafely, please consider use HTTPS
load 0 valid user