Skip to content

Instantly share code, notes, and snippets.

@mortik
Last active December 19, 2015 15:39
Show Gist options
  • Save mortik/5978239 to your computer and use it in GitHub Desktop.
Save mortik/5978239 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 debug
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
#daemon
#debug
#quiet
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 50000
clitimeout 50000
srvtimeout 50000
frontend all 0.0.0.0:80
timeout client 86400000
default_backend nginx_backend
backend nginx_backend
option forwardfor
option http-server-close
timeout connect 10000
timeout server 60000
server server1 127.0.0.1:8080 maxconn check inter 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment