Skip to content

117503445/https-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https-proxy

轻量级的 HTTPS 代理服务器

功能

  • 支持 HTTPS 代理作为流量入口
  • 支持 直连、HTTP 代理、SOCKS5 代理作为流量出口
graph LR
    A[客户端] -->|公网| B[HTTPS代理服务器]
    B -->|直连| C[目标服务器]
    B -->|HTTP| D[目标服务器]
    B -->|SOCKS5| E[目标服务器]
Loading

使用场景

在公网服务器上部署带有 Basic Auth 的 HTTPS 代理服务器,作为安全的流量入口,然后连接到后继代理服务器(如 sing-box),实现安全的代理链路。

graph LR
    A[客户端] -->|公网| B[HTTPS 代理服务器]
    B -->|内网| C[HTTP sing-box]
    C -->|公网| D[HTTP/HTTPS 目标服务器]
Loading

部署

二进制

下载最新版本二进制 TODO

将 TLS 证书文件 cert.pem 和私钥文件 key.pem 放到当前目录

写入配置文件 config.toml

port = 443
username = "root"
password = "YOU_PASSWORD"

# direct when `outbound` is empty. support http, socks5 protocol.
outbound = "http://localhost:1080"

运行

./https-proxy

Docker Compose

TODO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published