Skip to content

Instantly share code, notes, and snippets.

@fordaz
Created January 4, 2016 23:14
Show Gist options
  • Select an option

  • Save fordaz/e3be685e86c9e86ad1f1 to your computer and use it in GitHub Desktop.

Select an option

Save fordaz/e3be685e86c9e86ad1f1 to your computer and use it in GitHub Desktop.
Sample haproxy config with stats
global
log 127.0.0.1 syslog debug
daemon
user vcap
group vcap
maxconn 64000
spread-checks 4
stats socket /var/run/haproxy.sock mode 600 level admin
stats timeout 2m #Wait up to 2 minutes for input
defaults
log global
timeout connect 30000ms
maxconn 64000
timeout client 300000ms
timeout server 300000ms
frontend http-in
mode http
bind :80
option forwardfor
reqadd X-Forwarded-Proto:\ http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment