Categorygithub.com/octavore/lightproxy
modulepackage
0.1.0
Repository: https://github.com/octavore/lightproxy.git
Documentation: pkg.go.dev

# README

lightproxy

Lightweight proxy, useful for developing local services.

Example Usage

Installation (brew)

brew install octavore/tools/lightproxy

Registering URL mapping

To map foo.dev to localhost:3000:

# add mapping to hosts file
echo "127.0.0.1 foo.dev" | sudo tee --append /etc/hosts
lightproxy set-dest foo.dev localhost

Starting server

# sudo is used to allow lightproxy to listen on port 80
sudo lightproxy start

todo

  • daemon mode
  • path based routing
  • automatically add to host file
  • drop privileges
  • prettier UI

# Structs

No description provided by the author
No description provided by the author
Entry
No description provided by the author