.gitignore | ||
config.example.yml | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
simple-prox
Simple http proxy. Allows you to specify headers or a bearer token to add to every request.
I wanted a simple way to proxy access to remote APIs through a predicatble exit IP (where this service is running) and to isolate API keys from the calling service, this simple-prox was born.
It works with standard HTTP requests and SSEs (e.g. OpenAI compatible streaming responses). It should work with things like long-polling and websockets.
Building
go build . -o simple-prox
Running
./simple-prox \
-c config.yml \
-h 'Custom: Header' \
-b 'bearer-token-000' \
-p 8080 \
-e 'http://example.com'