-
Notifications
You must be signed in to change notification settings - Fork 19
/
haproxy.cfg.tmpl.debian
43 lines (40 loc) · 1.21 KB
/
haproxy.cfg.tmpl.debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
global
pidfile /var/run/haproxy.pid
daemon
user www-data
group www-data
stats socket /tmp/haproxy.socket user www-data group www-data mode 600 level admin
node NODE_NAME
description NODE_DESC
#* Performance Tuning
maxconn 40000
spread-checks 3
quiet
defaults
#log global
mode tcp
option dontlognull
option tcp-smart-accept
option tcp-smart-connect
#option dontlog-normal
retries 3
option redispatch
maxconn 40000
timeout check 3500ms
timeout queue 3500ms
timeout connect 3500ms
timeout client 10000ms
timeout server 10000ms
userlist STATSUSERS
group admin users admin
user ADMIN_USER insecure-password ADMIN_PASSWORD
user stats insecure-password USER_PASSWORD
listen admin_page 0.0.0.0:9600
mode http
stats enable
stats refresh 60s
stats uri /
acl AuthOkay_ReadOnly http_auth(STATSUSERS)
acl AuthOkay_Admin http_auth_group(STATSUSERS) admin
stats http-request auth realm admin_page unless AuthOkay_ReadOnly
stats admin if AuthOkay_Admin