DynamicDevices / ming-original

Balena.io/Docker-compose repo for a containerised #MING (Mosquitto, InfluxDB, NodeRed, Grafana) stack
33 stars 20 forks source link

Enable Mosquitto websockets by default #20

Closed ajlennon closed 4 years ago

ajlennon commented 4 years ago

eg

https://blog.ithasu.org/2016/05/enabling-and-using-websockets-on-mosquitto/

ajlennon commented 4 years ago

Fancy a go @MatthewCroughan ?

MatthewCroughan commented 4 years ago

Are there any security implications? Is there a reason mosquitto doesn't enable it by default anyway @ajlennon ?

ajlennon commented 4 years ago

Good questions.

MatthewCroughan commented 4 years ago

I think I'll look around and put that in the PR and discuss what I find regarding security, maybe enable it depending on env vars.

ajlennon commented 4 years ago

Response from Roger Light (Mosquitto creator)

"Security is much the same as for normal MQTT. Biggest difference is probably in keeping your credentials secret if you're using it as a web interface."