gns3-registry/docker/haproxy/haproxy.cfg

56 lines
1.8 KiB
INI
Raw Normal View History

2016-04-08 10:39:11 +00:00
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
#daemon
debug
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
mode http
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend main
bind *:80
default_backend app
#---------------------------------------------------------------------
# round robin balancing between the various backends
#---------------------------------------------------------------------
backend app
balance roundrobin
server app1 192.168.41.1:80 check
server app2 192.168.41.2:80 check
server app3 192.168.41.3:80 check
#---------------------------------------------------------------------
# Monitoring stats
#---------------------------------------------------------------------
listen stats
bind *:1234
stats enable
stats uri /
stats hide-version