modulepackage
0.0.0-20230112111942-795800e72302
Repository: https://github.com/karitham/proxyutil.git
Documentation: pkg.go.dev
# README
proxyutil
Proxyutil is a small utility for proxying requests to a server.
It is useful if you only have/want a single port open to multiple routes;
Usage
proxyutil '/:http://localhost:3000' '/api/v1:http://localhost:8070' '/api/v2:http://localhost:8080'
Will allow you to proxy requests to http://localhost:3000
and http://localhost:8070/api/v1
and http://localhost:8080/api/v2
respectively.
You can also use a config file to specify the routes:
/:http://localhost:3000
/api/v1:http://localhost:8070
/api/v2:http://localhost:8080
By default, file is looked for in $CWD/.proxies
but can be configured with --config
or $PROXYUTIL_CONFIG
.
# Functions
No description provided by the author