My setup is home-assistant OS with mosquito broker. When I setup MQTT server with internal ip 192.168.1.x:1883 everything works as expected but when I set it up using my external domain name, which gets routed through haproxy. it continually gets disconnected and connected. Any suggestion?
haproxy configuration -
frontend mqtt_fe
mode tcp
bind :1883
option tcplog
default_backend mqtt_be
backend mqtt_be
mode tcp
server mosquito internal_ip:1883 check