Last active
January 28, 2016 02:54
-
-
Save richardsonlima/1530869bf4b97870c79c to your computer and use it in GitHub Desktop.
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
# Layer7 [mode http] | |
global | |
log /dev/log local0 | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
daemon | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 | |
srvtimeout 50000 | |
errorfile 400 /etc/haproxy/errors/400.http | |
errorfile 403 /etc/haproxy/errors/403.http | |
errorfile 408 /etc/haproxy/errors/408.http | |
errorfile 500 /etc/haproxy/errors/500.http | |
errorfile 502 /etc/haproxy/errors/502.http | |
errorfile 503 /etc/haproxy/errors/503.http | |
errorfile 504 /etc/haproxy/errors/504.http | |
listen stats 0.0.0.0:1236 | |
mode http | |
stats enable | |
stats hide-version | |
stats refresh 10s | |
stats show-node | |
stats auth user:pw | |
stats uri /statsloadbalancer?stats | |
balance roundrobin | |
option httpclose | |
option forwardfor | |
frontend www | |
bind 0.0.0.0:80 | |
reqadd X-Forwarded-Proto:\ http | |
default_backend env-backend | |
backend env-backend | |
option abortonclose | |
option httpclose | |
balance roundrobin | |
mode http | |
server web1priv 10.10.10.140:80 check maxconn 500 | |
server web2priv 10.10.10.147:80 check maxconn 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment