https://github.com/ninnemana/butler
Basic port forwarding utility
https://github.com/ninnemana/butler
cloud-build docker golang reverse-proxy
Last synced: 2 months ago
JSON representation
Basic port forwarding utility
- Host: GitHub
- URL: https://github.com/ninnemana/butler
- Owner: ninnemana
- Created: 2018-09-26T06:35:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T04:03:55.000Z (over 7 years ago)
- Last Synced: 2025-06-08T16:39:44.268Z (about 1 year ago)
- Topics: cloud-build, docker, golang, reverse-proxy
- Language: Go
- Homepage:
- Size: 2.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 ./...
```