victronenergy / venus-html5-app

HTML5 App including Javascript library that communicates with Venus OS over MQTT websockets
MIT License
98 stars 32 forks source link

connect to the MQTT broker through the nginx websocket #384

Open jhofstee opened 2 weeks ago

jhofstee commented 2 weeks ago

In the near future (optional) encryption and authentication will be added for the LAN services, see https://github.com/victronenergy/venus/issues/1255. Both will be handled by the webserver (nginx). In order to make at least authentication work, the venus-html5-app should no longer connect directly to the MQTT websocket, but through the webserver instead. The url is http://[host]/websocket-mqtt or https://[host]/websocket-mqtt.

The current Venus releases already include mentioned path. Accessing the app over https:// will redirect to http:// at the moment.

mman commented 1 week ago

So this is a coordinated fix available for review as: