proxyutil

command module
v0.0.0-...-795800e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 15 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL