Skip to content

ninnemana/butler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Butler

A simple golang reverse proxy that supports HTTP(S) and creates route targets from a JSON configuration file.

Building

To run the application locally:

> go run main.go --config=examples/config.json
> sudo sed -i "127.0.0.1 butler-proxy" /etc/hosts
> curl -H 'Host: butler-proxy' http://localhost:8080
> view the reddits...

To run the application as a docker image:

> docker build -t butler .
> docker run -p 8080:80 butler --config=examples/docker.json
> sudo sed -i "127.0.0.1 butler-proxy" /etc/hosts
> curl -H 'Host: butler-proxy' http://localhost:8080
> view the reddits...

Testing

> go test -v ./...

Releases

No releases published

Packages

No packages published