mosquitto.conf
# mqtt协议port xxxxprotocol mqtt# websocket协议listener xxxxprotocol websockets
nginx(ws或wss)
location /mqtt{ proxy_pass http://127.0.0.1:xxxx; #address of home assistant machine proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";}
参考资料
网友评论