Load balancer & reverse proxy. With QUIC and config hot reload.
NOTE: for v0.1.0 it's reverse proxy only. No load balancer, no any type of authentication. If you need more flexibility, consider to use
nginxorHAProxy.
Well, the building process is very easy. You need to install Rust first:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shAfter installation, clone this repo:
git clone https://github.com/impulse-sw/lbrp.git
cd lbrpAnd build the lbrp:
RUSTFLAGS="--cfg reqwest_unstable" cargo build --releaseIf you have deployer and upx preinstalled, you can simply build lbrp via:
deployer buildYou have to complete lbrp-service.yaml configuration (see cc-server-kit README.md - YAML config example). After this, load services list into lbrp-config.json like this:
{
"lbrp_mode": "Single",
"services": [
{
"from": "127.0.0.1",
"to": "http://127.0.0.1:8019"
},
{
"from": "localhost",
"to": "http://127.0.0.1:8020"
}
]
}NOTE: don't edit
lbrp_modefor now (until v0.3.0).
lbrp will convert all requests:
- for
127.0.0.1/<something?>tohttp://127.0.0.1:8019/<something?>and - for
localhost/<something?>tohttp://127.0.0.1:8020/<something?>.