add: [zato] load-balancer config persistence
This commit is contained in:
68
zato/resources/opt/zato/env/qs-1/load-balancer/config/repo/zato.config
vendored
Normal file
68
zato/resources/opt/zato/env/qs-1/load-balancer/config/repo/zato.config
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
global
|
||||
log 127.0.0.1:514 local0 debug # ZATO global:log
|
||||
stats socket /opt/zato/env/qs-1/load-balancer/haproxy-stat.sock # ZATO global:stats_socket
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
defaults
|
||||
log global
|
||||
option httpclose
|
||||
|
||||
stats uri /zato-lb-stats # ZATO defaults:stats uri
|
||||
|
||||
timeout connect 15000 # ZATO defaults:timeout connect
|
||||
timeout client 15000 # ZATO defaults:timeout client
|
||||
timeout server 15000 # ZATO defaults:timeout server
|
||||
|
||||
errorfile 503 /opt/zato/env/qs-1/load-balancer/config/repo/503.http
|
||||
|
||||
stats enable
|
||||
stats realm Haproxy\ Statistics
|
||||
|
||||
# Note: The password below is a UUID4 written in plain-text.
|
||||
stats auth admin1:8ecbddd3bebe474b93ae43b353a917ff
|
||||
|
||||
stats refresh 5s
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
backend bck_http_plain
|
||||
mode http
|
||||
balance roundrobin
|
||||
|
||||
# ZATO begin backend bck_http_plain
|
||||
|
||||
|
||||
server http_plain--server1 127.0.0.1:17010 check inter 2s rise 2 fall 2 # ZATO backend bck_http_plain:server--server1
|
||||
|
||||
|
||||
# ZATO end backend bck_http_plain
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
frontend front_http_plain
|
||||
|
||||
mode http
|
||||
default_backend bck_http_plain
|
||||
|
||||
option forwardfor
|
||||
option httplog # ZATO frontend front_http_plain:option log-http-requests
|
||||
bind 0.0.0.0:11223 # ZATO frontend front_http_plain:bind
|
||||
maxconn 200 # ZATO frontend front_http_plain:maxconn
|
||||
|
||||
monitor-uri /zato-lb-alive # ZATO frontend front_http_plain:monitor-uri
|
||||
|
||||
frontend front_tls_no_client_certs
|
||||
|
||||
mode http
|
||||
default_backend bck_http_plain
|
||||
option forwardfor
|
||||
reqadd X-Forwarded-Proto:\ https
|
||||
|
||||
acl has_x_forwarded_proto req.fhdr(X-Forwarded-Proto) -m found
|
||||
http-request deny if has_x_forwarded_proto
|
||||
|
||||
bind 0.0.0.0:21223 ssl crt /opt/hot-deploy/cert/letsencrypt-fullchain.pem
|
Reference in New Issue
Block a user