global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners stats timeout 30s user haproxy group haproxy daemon ssl-default-bind-options ssl-min-ver TLSv1.2 defaults log global mode http option httplog option dontlognull timeout connect 5s timeout client 50s timeout server 1h timeout tunnel 1h balance roundrobin cookie SERVERID insert indirect nocache option http-keep-alive option httpchk frontend hyperstream_front bind 192.168.86.119:443 ssl crt /etc/haproxy/certs/domain.pem bind 192.168.86.119:80 http-request set-header X-Forwarded-Proto https if { ssl_fc } http-request set-header X-Forwarded-For %[src] redirect scheme https code 301 if !{ ssl_fc } default_backend hyperstream_back frontend rdp_mgmt_front bind 192.168.86.120:443 ssl crt /etc/haproxy/certs/domain.pem bind 192.168.86.120:80 http-request set-header X-Forwarded-Proto https if { ssl_fc } http-request set-header X-Forwarded-For %[src] redirect scheme https code 301 if !{ ssl_fc } default_backend rdp_mgmt_back backend hyperstream_back http-request set-header Host hs-haproxy1.jamesrlab.jamesr.com http-check send meth GET uri /hyperstream/ hdr Host hs-haproxy1.jamesrlab.jamesr.com http-check expect status 200-399 server jr-prox2-k3s01-worker1 192.168.86.128:30443 ssl verify none check cookie jr-prox2-k3s01-worker1 server jr-prox2-k3s01-worker2 192.168.86.129:30443 ssl verify none check cookie jr-prox2-k3s01-worker2 server jr-prox2-k3s01-worker3 192.168.86.130:30443 ssl verify none check cookie jr-prox2-k3s01-worker3 backend rdp_mgmt_back http-request set-header Host rdp-haproxy1.jamesrlab.jamesr.com http-check send meth GET uri /rdp-mgmt-gateway hdr Host rdp-haproxy1.jamesrlab.jamesr.com http-check expect status 200-499 server jr-prox2-k3s01-worker1 192.168.86.128:30443 ssl verify none check cookie jr-prox2-k3s01-worker1 server jr-prox2-k3s01-worker2 192.168.86.129:30443 ssl verify none check cookie jr-prox2-k3s01-worker2 server jr-prox2-k3s01-worker3 192.168.86.130:30443 ssl verify none check cookie jr-prox2-k3s01-worker3 listen stats bind *:9000 stats enable stats uri /stats stats refresh 10s stats auth admin:Apporto@123