install ha proxy on ubuntu server
sudo add-apt-repository ppa:vbernat/haproxy-2.0
sudo apt-get update
sudo apt-get install haproxy
configura haproxy
sudo vi /etc/haproxy/haproxy.cfg
add below line to the haproxy configuration
frontend meet
bind *:443 ssl crt /etc/haproxy/certs/yourdmoani.pem
option forwardfor
reqadd X-Forwarded-Proto:\ https
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl
default_backend www-backend
backend www-backend
balance url_param room
option httpchk
hash-type consistent
server shard1 44.45.3.11 check ssl verify none
server shard2 32.12.216.187 check ssl verify none
restart haproxy
haproxy -c -f /etc/haproxy/haproxy.cfg
sudo service haproxy restart
Leave a Comment