Created
January 19, 2015 19:09
-
-
Save intinig/321cc7acbd3a50082326 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
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local1 notice | |
| user root | |
| group root | |
| defaults | |
| log global | |
| mode http | |
| option httplog | |
| option dontlognull | |
| timeout connect 5000 | |
| timeout client 50000 | |
| timeout server 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 | |
| frontend main | |
| bind /var/run/rgts.sock mode 777 | |
| default_backend rgts | |
| listen stats | |
| bind /var/run/rgts.sock mode 777 | |
| stats enable | |
| stats uri /hstats | |
| # acl whitelist src 93.51.152.124/32 | |
| # tcp-request content accept if whitelist | |
| # tcp-request content reject | |
| default_backend rgts | |
| backend rgts :80 | |
| option httpchk GET /ping | |
| option redispatch | |
| errorloc 400 /400 | |
| errorloc 403 /403 | |
| errorloc 500 /500 | |
| errorloc 403 /503 | |
| server rgts0 unix@/var/lib/haproxy/socks/app0.sock check | |
| server rgts1 unix@/var/lib/haproxy/socks/app1.sock check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment