美文网首页
mosquitto websocket配置

mosquitto websocket配置

作者: mrpzx001 | 来源:发表于2022-03-11 16:19 被阅读0次

    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";}

    参考资料

    http://www.steves-internet-guide.com/mqtt-websockets/

    相关文章

      网友评论

          本文标题:mosquitto websocket配置

          本文链接:https://www.haomeiwen.com/subject/utxhdrtx.html