A Let'sEncrypt
based reverse proxy, that will automatically generate & renew valid ssl
certs for your domains, it also enables the http/2
protocol by default, and uses roundrobin
as an algorithm to loadbalance the incoming requests between multiple upstreams
Just run the following and then have fun !!
$ docker run -v $HOME:/root/ -p 443:443 alash3al/httpsify
You must have the
Go
environment installed$ go get -u github.com/alash3al/httpsify
Goto your
$HOME
Directory and edit thehosts.json
to something like this{ "example1.com": ["http://localhost"], "example2.com": ["http://localhost:8080", "http://localhost:8081"] }
As you see, the configuration file accepts a
JSON
object/hashmap ofdomain
->upstreams
, and yes, it can loadbalance the requests between multiple upstreams usingroundrobin
algorithm.Also You don't need to restart the server to reload the configurations, because
httpsify
automatically watches the configurations file and reload it on any change.