-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
37 lines (31 loc) · 769 Bytes
/
haproxy.cfg
File metadata and controls
37 lines (31 loc) · 769 Bytes
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
global
pidfile /var/run/haproxy.pid
stats socket /var/run/haproxy.sock mode 660 level admin expose-fd listeners
defaults
mode http
balance roundrobin
option dontlognull
option dontlog-normal
option redispatch
maxconn 5000
timeout connect 5s
timeout client 20s
timeout server 20s
timeout queue 30s
timeout http-request 5s
timeout http-keep-alive 15s
stats enable
stats refresh 30s
stats realm Strictly\ Private
stats uri /admin?stats
frontend dummy-fe
bind *:80
bind *:443
mode http
option forwardfor
option http-server-close
acl url_dummy path_beg /dummy
use_backend dummy-be if url_dummy
backend dummy-be
mode http
server dummy 127.0.0.1:1111