This is an old revision of the document!
sudo apt update && sudo apt upgrade -y
sudo apt install haproxy -y
haproxy -v
sudo systemctl start haproxy sudo systemctl enable haproxy
/etc/haproxy/haproxy.cfg file with this HAProxy Configuration configuration.sudo haproxy -c -f /etc/haproxy/haproxy.cfg
sudo systemctl restart haproxy
*/5 * * * * head -n -1 /etc/haproxy/whitelist.lst > /etc/haproxy/whitelist.tmp && dig +short host.mydyndns.org >> /etc/haproxy/whitelist.tmp && mv /etc/haproxy/whitelist.tmp /etc/haproxy/whitelist.lst && systemctl reload haproxy
15 3,15 * * * certbot renew --post-hook "systemctl reload haproxy" > /dev/null 2>&1
dig domain.name +short