haproxy负载 ssl证书配置好 wss连接时 mqttx可以连接 前端连接不上
haproxy配置
listen mqtt-wss
bind *:8084 ssl crt /etc/ssl/emqx/emq.pem no-sslv3
mode tcp
maxconn 50000
timeout client 600s
default_backend emqx_cluster_wss
backend emqx_cluster_wss
mode tcp
balance source
timeout server 50s
timeout check 5000
server emqx1 127.0.0.1:9083 check inter 10000 fall 2 rise 5 weight 1
server emqx2 172.26.230.162:8083 check inter 10000 fall 2 rise 5 weight 1
使用mqttx 这个工具可以通过wss连上
前端vue创建连接的时候 连不上