global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats timeout 30s user haproxy group haproxy daemondefaults log global timeout connect 5000 timeout client 50000 timeout server 50000frontend frontend_http bind *:80 mode http option httplog use_backend client1_http if { hdr_end(host) -i docker.tld } use_backend client2_http if { hdr_end(host) -i dokploy.tld }frontend frontend_https bind *:443 mode tcp option tcplog tcp-request inspect-delay 5s tcp-request content accept if { req_ssl_hello_type 1 } use_backend client1_https if { req.ssl_sni -m end docker.tld } use_backend client2_https if { req.ssl_sni -m end dokploy.tld }backend client1_http mode http server client1_http 10.0.0.2:80 send-proxy-v2 checkbackend client1_https mode tcp server client1_https 10.0.0.2:443 send-proxy-v2 checkbackend client2_http mode http server client2_http 10.0.0.3:80 send-proxy-v2 checkbackend client2_https mode tcp server client2_https 10.0.0.3:443 send-proxy-v2 check