2016-09-08 17:18:14 +03:00
global
debug
stats socket /tmp/admin.sock
stats timeout 30s
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend localnodes
bind *:8013
mode http
default_backend nodes
2017-01-03 21:59:12 +03:00
frontend localnodes_ssl
bind *:8043
mode tcp
default_backend nodes_ssl
2016-09-15 19:06:44 +03:00
frontend rabbitctl
bind *:15672
mode http
default_backend rabbitctl_nodes
2016-09-08 17:18:14 +03:00
backend nodes
mode http
balance roundrobin
option forwardfor
option http-pretend-keepalive
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
option httpchk HEAD / HTTP/1.1\r\nHost:localhost
2017-07-18 18:16:18 +03:00
server awx_1 awx_1:8013 check
server awx_2 awx_2:8013 check
server awx_3 awx_3:8013 check
2016-09-08 17:18:14 +03:00
2017-01-03 21:59:12 +03:00
backend nodes_ssl
mode tcp
balance roundrobin
2017-07-18 18:16:18 +03:00
server awx_1 awx_1:8043
server awx_2 awx_2:8043
server awx_3 awx_3:8043
2017-01-03 21:59:12 +03:00
2016-09-15 19:06:44 +03:00
backend rabbitctl_nodes
mode http
balance roundrobin
option forwardfor
option http-pretend-keepalive
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
#option httpchk HEAD / HTTP/1.1\r\nHost:localhost
server rabbitmq_1 rabbitmq_1:15672
server rabbitmq_2 rabbitmq_2:15672
server rabbitmq_3 rabbitmq_3:15672
2016-09-08 17:18:14 +03:00
listen stats
bind *:1936
stats enable
stats uri /