Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2016 14:11
Show Gist options
  • Select an option

  • Save anonymous/1e334ef5fef7314797a2 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/1e334ef5fef7314797a2 to your computer and use it in GitHub Desktop.
haproxy forward
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
defaults
mode http
log global
option dontlognull
option httpclose
#option httplog
option tcplog
#option forwardfor
option redispatch
timeout connect 10000 # default 10 second time out if a backend is not found
timeout client 300000
timeout server 300000
maxconn 60000
retries 3
frontend tcp-443-front
bind *:443
mode tcp
default_backend tcp-443-back
backend tcp-443-back
mode tcp
balance leastconn
server tcp-443 122.144.208.6:443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment