Skip to content

Instantly share code, notes, and snippets.

@joshwilsdon
Last active August 29, 2015 14:15
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 joshwilsdon/acca258255c0439316aa to your computer and use it in GitHub Desktop.
Save joshwilsdon/acca258255c0439316aa to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
stats socket /tmp/haproxy
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
timeout connect 5000
timeout client 50000
timeout server 50000
listen web-proxy 0.0.0.0:80
mode http
balance roundrobin
server lb 127.0.0.1
listen stats :1936
mode http
stats enable
stats hide-version
stats scope .
stats realm Haproxy\ Statistics
stats uri /
stats auth user:pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment