global log 127.0.0.1 local0 debug log-send-hostname maxconn 1024 chroot /var/haproxy uid 604 gid 604 daemon pidfile /var/run/haproxy.pid defaults log global mode http option httplog option dontlognull option redispatch retries 3 maxconn 2000 timeout client 30s timeout server 30s timeout connect 5s frontend http bind 62.219.131.121:80 mode http acl kodi hdr(host) -i jellyfin.shore.co.il acl kodi hdr(host) -i kodi.shore.co.il acl kodi hdr(host) -i library.shore.co.il acl kodi hdr(host) -i transmission.shore.co.il use_backend kodi_http if kodi default_backend host01_http frontend https bind 62.219.131.121:443 mode tcp option tcplog tcp-request inspect-delay 5s tcp-request content accept if { req_ssl_hello_type 1 } acl kodi req_ssl_sni -i jellyfin.shore.co.il acl kodi req_ssl_sni -i kodi.shore.co.il acl kodi req_ssl_sni -i library.shore.co.il acl kodi req_ssl_sni -i transmission.shore.co.il use_backend kodi_https if kodi default_backend host01_https backend host01_http mode http option forwardfor server host01 host01.shore.co.il:80 check backend host01_https mode tcp option ssl-hello-chk server host01 host01.shore.co.il:443 check backend kodi_http mode http option forwardfor server kodi kodi.shore.co.il:80 check backend kodi_https mode tcp option ssl-hello-chk server kodi kodi.shore.co.il:443 check