...
Code Block |
---|
brew install haproxy |
Configuration
Code Block |
---|
|
cat /etc/haproxy/haproxy.cfg
|
Code Block |
---|
#HA Proxy Config
global
ulimit-n 500000
maxconn 99999
maxpipes 99999
tune.maxaccept 500
log stdout local0
log stdout local1 notice
defaults
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
timeout tunnel 1h
frontend hivemq.mbp.local
bind 127.0.0.1:8888 ssl crt /etc/haproxy/MBP.pem ca-file /etc/haproxy/rootCA.crt verify optional
mode tcp
default_backend hivemq
mode tcp
backend hivemq
server mqtt1 127.0.0.1:1883 send-proxy-v2-ssl-cn |
...
See https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#5.2-proxy-v2-options
Run
Code Block |
---|
|
haproxy -f /etc/haproxy/haproxy.cfg |
...