Skip to content

Instantly share code, notes, and snippets.

@micheee
Created October 31, 2012 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micheee/e32854f0e35f14d0e863 to your computer and use it in GitHub Desktop.
Save micheee/e32854f0e35f14d0e863 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local1 notice
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
http-send-name-header Host
option forwardfor
option httpclose
stats enable
stats uri /haproxy?stats
listen jiffy
bind *:8181
default_backend repo
backend repo
balance source
server target-machine:8766 target-machine:8766 maxconn 32
server target-machine:8767 target-machine:8767 maxconn 32
server target-machine:8768 target-machine:8768 maxconn 32
server target-machine:8769 target-machine:8769 maxconn 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment