https-proxy

command module
v0.0.0-...-6b42c5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

README

https-proxy

轻量级的 HTTPS 代理服务器

功能

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

使用场景

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

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

部署

二进制

下载最新版本二进制 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL