-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
37 lines (33 loc) · 769 Bytes
/
haproxy.cfg
File metadata and controls
37 lines (33 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
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
stats timeout 30s
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000ms
timeout client 10000ms
timeout server 10000ms
frontend localnodes
bind *:8081
mode http
default_backend www_backend
backend www_backend
mode http
option forwardfor
http-request set-header X-Forwarded-Port %[dst_port]
balance roundrobin
server webnode1 webNode1:8081 check
server webnode2 webNode2:8081 check
server webnode3 webNode3:8081 check
option httpchk OPTIONS * HTTP/1.1\r\nHost:\ localhost
option httpchk GET /
http-check expect status 200
listen stats
bind *:70
stats enable
stats uri /
# #stats hide-version
# #stats auth someuser:password