38 lines
707 B
YAML
38 lines
707 B
YAML
---
|
|
|
|
# global settings
|
|
haproxy_global:
|
|
log: "/dev/log local2"
|
|
chroot: "/var/lib/haproxy"
|
|
pidfile: "/var/run/haproxy.pid"
|
|
maxconn: 35000
|
|
user: "haproxy"
|
|
group: "haproxy"
|
|
daemon: true
|
|
stats_socket: "/var/lib/haproxy/stats user haproxy group haproxy mode 660 level admin"
|
|
|
|
# default settings
|
|
haproxy_defaults:
|
|
log: "global"
|
|
mode: "tcp"
|
|
option: "tcplog"
|
|
timeout_check: "5s"
|
|
timeout_connect: "10s"
|
|
timeout_client: "600s"
|
|
timeout_server: "600s"
|
|
|
|
# stats listener (optional)
|
|
haproxy_stats:
|
|
enabled: false
|
|
bind: "0.0.0.0:9000"
|
|
mode: "http"
|
|
uri: "/"
|
|
show_node: true
|
|
refresh: "10s"
|
|
auth: "admin:password"
|
|
|
|
# frontends
|
|
haproxy_frontends: []
|
|
|
|
# backends
|
|
haproxy_backends: []
|