This is a simple implementation of a secure HTTP proxy server in Go. The proxy server uses basic authentication and supports HTTP tunneling via the CONNECT
method.
- Secure TLS connection
- Basic authentication
- HTTP tunneling with
CONNECT
method - Configurable via a YAML file
- Go 1.16 or higher
-
Clone the repository:
git clone https://github.com/hightemp/https_proxy cd https_proxy
-
Build the project:
go build -o https_proxy main.go
-
Create a
config.yaml
file with the following content:proxy_addr: ":8080" username: "your_username" password: "your_password" cert_path: "path/to/your/cert.pem" key_path: "path/to/your/key.pem"
Start the proxy server with the path to your configuration file:
./proxy-server -config config.yaml
This project is licensed under the MIT License.