command
module
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Feb 5, 2019
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
WeeProxy
WeeProxy is a wee bit http proxy to access http services mapped over URL path.
-
HTTP Proxy based on URL path mapped to Backends
-
round-robin load-balancing
-
graceful stop/restart
-
prometheus performance metrics at /metrics
Quikstart
dep ensure
go run weeproxy.go
curl localhost:8080/nothing
curl localhost:8080/google
Config
-
config to be used can be changed by providing path to env
var WEEPROXY_CONFIG
-
proxies based on URL Path maps provided as configuration like, sample config
{
"server": {
"listen-at": ":8080"
},
"url-proxy": {
"/google": "http://www.google.com http://www.google.in",
....more
}
}
in sample config above, when multiple backends need be load-balanced they are separated by a space
if any other character gets used as separator, env WEEPROXY_LB_SEPARATOR
need be set with same
- port to listen at can be modified updating
listen-at
field in above config
ToDo
-
configurable header customization
-
better no-backend handling
-
rate-limiting
-
circuit breaker
-
runtime authenticated config updates over admin api
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.