35 lines
666 B
Plaintext
35 lines
666 B
Plaintext
global
|
|
daemon
|
|
maxconn 2000
|
|
log stdout format raw local0 info
|
|
|
|
defaults
|
|
mode http
|
|
option httplog
|
|
option dontlognull
|
|
timeout connect 5s
|
|
timeout client 30s
|
|
timeout server 30s
|
|
retries 2
|
|
|
|
frontend cache_in
|
|
bind *:9000
|
|
mode http
|
|
default_backend cache_servers
|
|
|
|
backend cache_servers
|
|
mode http
|
|
balance roundrobin
|
|
option tcp-check
|
|
server varnish varnish-dev:80 check
|
|
server squid squid-dev:3128 check
|
|
|
|
listen stats
|
|
bind *:8404
|
|
mode http
|
|
stats enable
|
|
stats uri /haproxy?stats
|
|
stats refresh 10s
|
|
stats realm Haproxy\ Statistics
|
|
stats auth ${stats_user}:${stats_password}
|