Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- maxconn 4096
- ssl-server-verify none
- defaults
- mode tcp
- balance roundrobin
- option redispatch
- option forwardfor
- timeout connect 5s
- timeout queue 5s
- timeout client 36000s
- timeout server 36000s
- frontend http-in
- mode tcp
- bind *:443 ssl crt /etc/haproxy/certificate.pem
- default_backend rancher_servers
- acl is_websocket hdr(Upgrade) -i WebSocket
- acl is_websocket hdr_beg(Host) -i ws
- use_backend rancher_servers if is_websocket
- backend rancher_servers
- server RancherServer1 <rancher_server_ip>:443 weight 1 maxconn 1024 ssl check
- server RancherServer2 <rancher_server2_ip>:443 weight 1 maxconn 1024 ssl check
Add Comment
Please, Sign In to add comment