https://github.com/go-bai/http-proxy
https://github.com/go-bai/http-proxy
cloud-native docker http-proxy https-proxy whitelist
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/go-bai/http-proxy
- Owner: go-bai
- License: mit
- Created: 2023-02-02T13:57:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T15:04:56.000Z (over 1 year ago)
- Last Synced: 2024-07-30T18:58:25.034Z (over 1 year ago)
- Topics: cloud-native, docker, http-proxy, https-proxy, whitelist
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple and useful http proxy
## Quick Start
### Get the latest tag
```bash
apt/yum install jq -y
TAG=`curl -s GET https://api.github.com/repos/go-bai/http-proxy/tags\?per_page=1 | jq -r '.[].name'`
echo $TAG
```
### Run with Docker
```bash
docker run --rm --net=host --name http-proxy ghcr.io/go-bai/http-proxy:$TAG
```
### custom password
```bash
docker run -d --net=host -e HTTP_PROXY_PASS="xxx" --restart always --name http-proxy ghcr.io/go-bai/http-proxy:$TAG
```
## Environment Variable
| key | default |
| --- | - |
| `HTTP_PROXY_ADDR` | `:38888` |
| `HTTP_PROXY_AUTH` | `on` |
| `HTTP_PROXY_PASS` | `` |
## Credits
- [sobyte](https://www.sobyte.net/post/2021-09/https-proxy-in-golang-in-less-than-100-lines-of-code/)