Skip to content

Instantly share code, notes, and snippets.

@pmauduit
Created November 3, 2016 17:24
Show Gist options
  • Save pmauduit/dda359b1f67e0d9e8120d8c288bca6ee to your computer and use it in GitHub Desktop.
Save pmauduit/dda359b1f67e0d9e8120d8c288bca6ee to your computer and use it in GitHub Desktop.
HAProxy sample conf
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