Contents
Urithiru is a layer-4 reverse-proxy and load-balancer that can be easily configured using a .toml file.
For more on how this project works, visit my portfolio.
git clone https://github.com/Sidney-Bernardin/Urithiru.git
cd Urithiru
go install ./cmd/urithiru/.docker pull sidneybernardin/urithiru:latestRun the executable with the following command line arguments.
Usage of urithiru:
-config string
Path to configuration file. (default "/etc/urithiru/config.toml")
-pprof_addr string
Address for the PPROF server. (default ":6060")Easily configure with a .toml file.
# All default values.
pingTimeout = "10s" # Timeout for a backend ping message.
pingInterval = "1s" # Frequency of backend ping messages.
[[ proxies ]]
name = ""
addr = "" # Address to listen on.
buffer_size = 1024 # Buffer size for each TCP connection.
tls_cert = "" # TLS certificate.
tls_key = "" # TLS key.
pingTimeout = "<defaults to parent's value>"
pingInterval = "<defaults to parent's value>"
[[ proxies.backends ]]
addr = "" # Address of a backend server.
pingTimeout = "<defaults to parent's value>"
pingInterval = "<defaults to parent's value>"
# Configure as many as you need.
# [[ proxies ]]
# [[ proxies.backends ]]
# [[ proxies.backends ]]
# ...
# [[ proxies ]]
# [[ proxies.backends ]]
# ...