Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 575 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 575 Bytes

go-http-proxy

Proxy HTTP requests to a specified host target. Handles Location response header re-writes and basic auth for protecting the target host.

Usage

Build from source

git clone [email protected]:dotnetmentor/go-http-proxy.git
cd ./go-http-proxy
go build -o go-http-proxy
go-http-proxy -addr=localhost:8080 -host=localhost:2113 -rewrite-location-header -basic=admin:changeit -v

Docker

docker build -t dotnetmentor/go-http-proxy:latest .
docker run --rm -p 8080:8080 dotnetmentor/go-http-proxy:latest -host=<hostname>:<port> -v