DAC-Of-Purdue / iot-dashboard

A dashboard repo of IoT in digital agriculture
http://66.253.158.154:8005/
0 stars 0 forks source link

WS protocol is not allowed on HTTPS. #24

Open tame0001 opened 1 year ago

tame0001 commented 1 year ago
          WS protocol is not allowed on HTTPS.

main.04c535ce965f4f77.js:1 Mixed Content: The page at 'https://dac-of-purdue.github.io/iot-dashboard/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://66.253.158.154:9001/mqtt'. This request has been blocked; this endpoint must be available over WSS.

Originally posted by @tame0001 in https://github.com/DAC-Of-Purdue/iot-dashboard/issues/21#issuecomment-1627537422

We need to install a certificate in the broker and change protocol t WSS. This is how

tame0001 commented 1 year ago

More tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10 https://www.digitalocean.com/community/tutorials/how-to-use-certbot-standalone-mode-to-retrieve-let-s-encrypt-ssl-certificates-on-debian-10