Created
November 3, 2016 17:24
-
-
Save pmauduit/dda359b1f67e0d9e8120d8c288bca6ee to your computer and use it in GitHub Desktop.
HAProxy sample conf
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 /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
defaults | |
log global | |
mode tcp | |
option tcplog | |
option dontlognull | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 | |
frontend test-lb | |
bind *:8080 | |
mode tcp | |
use_backend test | |
backend test | |
mode tcp | |
server test www.pigma.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment