a simple reverse proxy implementation for quick container assmebling behind a single host:port.
This example runs a webserver at http://localhost:8080
with /api/ mapped to localhost:8081 and / mapped to localhost:8082. The first matching regular expression gets the request.
goproxygo /api/.*:http://localhost:8081 /.*:http://localhost:8082
This example runs a webserver at http://0.0.0.0:8080
with /api/ mapped to localhost:8081 and / mapped to localhost:8082. The first matching regular expression gets the request.
goproxygo --host 0.0.0.0 /api/.*:http://localhost:8081 /.*:http://localhost:8082
This example runs a webserver at http://0.0.0.0:8000
with /api/ mapped to localhost:8081 and / mapped to localhost:8082. The first matching regular expression gets the request.
goproxygo --host 0.0.0.0 --port 8000 /api/.*:http://localhost:8081 /.*:http://localhost:8082
In order to build
go build cmd/goproxygo/main.go