Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

skyyangyun/https-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

https-proxy

A https proxy server powered by deno

How to use

Require Deno

If you have deno. This is 2 way to use proxy server.

1. direct run script by GitHub raw url

deno run --unstable --allow-net --allow-read https://raw.githubusercontent.com/skyyangyun/https-proxy/main/proxy.js

2. install script to system

install:

deno install --unstable --allow-net --allow-read https://raw.githubusercontent.com/skyyangyun/https-proxy/main/proxy.js

run locally:

proxy

Not requirement need

download releases package on the right

run program:

proxy

proxy address would print to console like this:

Listening on http://:::8000/

HTTPS mode

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

Proxy Basic Authorization

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