This commit is contained in:
parent
d32fdc00a3
commit
2cdb27b959
20
haproxy.cfg
20
haproxy.cfg
@ -76,6 +76,16 @@ backend birb-vke
|
|||||||
server worker1 192.168.122.3:31080 check
|
server worker1 192.168.122.3:31080 check
|
||||||
server worker2 192.168.122.4:31080 check
|
server worker2 192.168.122.4:31080 check
|
||||||
|
|
||||||
|
frontend birb-edge
|
||||||
|
bind 0.0.0.0:83
|
||||||
|
mode http
|
||||||
|
use_backend birb-edge
|
||||||
|
|
||||||
|
backend birb-edge
|
||||||
|
balance leastconn
|
||||||
|
mode http
|
||||||
|
server edge 192.168.36.5:80 check
|
||||||
|
|
||||||
listen mqtt
|
listen mqtt
|
||||||
bind *:1883
|
bind *:1883
|
||||||
mode tcp
|
mode tcp
|
||||||
@ -95,3 +105,13 @@ listen mqtt-vke
|
|||||||
option tcplog
|
option tcplog
|
||||||
balance leastconn
|
balance leastconn
|
||||||
server worker1 192.168.122.3:30007 check
|
server worker1 192.168.122.3:30007 check
|
||||||
|
|
||||||
|
listen mqtt-edge
|
||||||
|
bind *:1885
|
||||||
|
mode tcp
|
||||||
|
option clitcpka
|
||||||
|
timeout client 3h
|
||||||
|
timeout server 3h
|
||||||
|
option tcplog
|
||||||
|
balance leastconn
|
||||||
|
server edge 192.168.36.5:1883 check
|
Loading…
Reference in New Issue
Block a user