Created
January 4, 2016 23:14
-
-
Save fordaz/e3be685e86c9e86ad1f1 to your computer and use it in GitHub Desktop.
Sample haproxy config with stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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