JustPaste.it

# Automaticaly generated, dont edit manually.
# Generated on: 2025-11-01 03:17
global
    maxconn            100
    log            /var/run/log    local0    info
    stats socket /tmp/haproxy.socket level admin  expose-fd listeners
    uid            80
    gid            80
    nbthread            1
    hard-stop-after        15m
    chroot                /tmp/haproxy_chroot
    daemon
    tune.ssl.default-dh-param    2048
    log-send-hostname        HaproxyMasterNode
    server-state-file /tmp/haproxy_server_state

listen HAProxyLocalStats
    bind 127.0.0.1:2200 name localstats
    mode http
    stats enable
    stats admin if TRUE
    stats show-legends
    stats uri /haproxy/haproxy_stats.php?haproxystats=1
    timeout client 5000
    timeout connect 5000
    timeout server 5000

frontend domain.help
    bind            92.XX.XXX.XX:443 name 92.XX.XXX.XX:443   
    mode            http
    log            global
    option            http-keep-alive
    timeout client        30000
    acl            rustpad    var(txn.txnhost) -m str -i rustpad.domain.help
    acl            myspeed    var(txn.txnhost) -m str -i speed.domain.help
    http-request set-var(txn.txnhost) hdr(host)
    use_backend rustpad_ipvANY  if  rustpad 
    use_backend myspeed_ipvANY  if  myspeed 

backend rustpad_ipvANY
    mode            http
    id            108
    log            global
    timeout connect        30000
    timeout server        30000
    retries            3
    load-server-state-from-file    global
    server            rustpad 10.1.1.10:3030 id 105 check inter 1000  

backend myspeed_ipvANY
    mode            http
    id            112
    log            global
    timeout connect        30000
    timeout server        30000
    retries            3
    load-server-state-from-file    global
    server            myspeed 10.1.1.10:5216 id 105 check inter 1000