https://github.com/hightemp/https_proxy
This is a simple implementation of a secure HTTP proxy server in Go. The proxy server uses basic authentication.
https://github.com/hightemp/https_proxy
go golang http-proxy https https-proxy
Last synced: 8 months ago
JSON representation
This is a simple implementation of a secure HTTP proxy server in Go. The proxy server uses basic authentication.
- Host: GitHub
- URL: https://github.com/hightemp/https_proxy
- Owner: hightemp
- Created: 2024-07-13T13:21:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T09:43:28.000Z (over 1 year ago)
- Last Synced: 2025-02-16T00:42:52.726Z (about 1 year ago)
- Topics: go, golang, http-proxy, https, https-proxy
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secure HTTP Proxy Server
This is a simple implementation of a secure HTTP proxy server(can HTTPS and HTTP) in Go.
## Features
- Secure TLS connection
- Basic authentication
- Configurable via a YAML file
## Installation
1. Clone the repository:
```sh
git clone https://github.com/hightemp/https_proxy
cd https_proxy
```
2. Build the project:
```sh
go build -o https_proxy main.go
```
3. Create a `config.yaml` file with the following content:
```yaml
proxy_addr: 0.0.0.0:8080
username: "your_username"
password: "your_password"
proto: https
cert_path: "path/to/your/cert.pem"
key_path: "path/to/your/key.pem"
```
4. Create certificates.
```bash
sudo certbot certonly --standalone -d example.com
```
Add certs to config:
```yaml
cert_path: "/etc/letsencrypt/live/example.com/fullchain.pem"
key_path: "/etc/letsencrypt/live/example.com/privkey.pem"
```
## Usage
Start the proxy server with the path to your configuration file:
```sh
./https_proxy -config config.yaml
```
## License
This project is licensed under the MIT License.
[](https://asdertasd.site/counter/https_proxy)