-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhaproxy copy.cfg
54 lines (45 loc) · 1.43 KB
/
haproxy copy.cfg
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
44
45
46
47
48
49
50
51
52
53
54
global
log /dev/log local0
log /dev/log local1 notice
daemon
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL).
ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 30
timeout client 30
timeout server 30
frontend localnodes
bind *:8080
mode http
acl fib path_end -i /fib
acl is_health path /health
default_backend srvs_index
use_backend srvs_fib if fib
use_backend health-check if is_health
resolvers kube-dns
parse-resolv-conf
hold valid 10s
backend srvs_index
server fe1 frontend-gratuitous:8080 check
server fe2 frontend:8080 check
backend health-check
mode http
errorfile 503 /local-health/health.http
backend srvs_fib
mode http
balance roundrobin
option forwardfor
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
server f1 fib-go-gratuitous:8080 check
server f2 fib-node-gratuitous:8080 check
server f3 fib-go-gratuitous:8080 check
server f4 fib-node-gratuitous:8080 check