Skip to content

adambkaplan/sprayproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spray Proxy

A very simple reverse proxy that broadcasts to multiple backends.

Try it!

$ make build
$ bin/sprayproxy server --backend <backend-server> --backend <another-backend-server>

You can also configure the proxy with environment variables:

  • SPRAYPROXY_SERVER_HOST: host for the proxy

  • SPRAYPROXY_SERVER_PORT: port to serve the proxy

  • SPRAYPROXY_SERVER_BACKENDS: a space-separated list of backends to forward traffic. Example:

    SPRAYPROXY_SERVER_BACKENDS="http://localhost:8080 http://localhost:8081"
    
  • SPRAYPROXY_SERVER_INSECURE_SKIP_TLS_VERIFY: Skip TLS verification when forwarding to backends. Note: this setting is insecure and should not be used in production environments.

Developing

  • Run make build to build the proxy sever (output to bin/sprayproxy)
  • Run make test to run unit tests
  • Run make run to launch the proxy with default configuration

About

A reverse proxy to broadcast requests to multiple backends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.2%
  • Dockerfile 2.4%
  • Makefile 2.4%