I’ve successfully built both edge and ui and deployed on our emebedded linux device.
When I point my browser to the device ip address in plain http all work good, I can see and configure the dashboard.
If I use https, I’ve got problem related to the web-socket connection it seem that the edge does not respond to the web-socket request. (se picture)
the edge is for sure listening for the right port in fact http works and a netstat show the port 8075 opened
have you got some hints for me ?
thank you in advance
Hi Alessandro,
TLS encryption required by HTTPS requires additional configuration of the WebSocket library.
It is possible, but would require additional configuration properties like Keystore, etc., as can be seen in this example: Java-WebSocket/src/main/example/SSLServerExample.java at master · TooTallNate/Java-WebSocket · GitHub
If you go that way, I’ll welcome your Pull Request.
I would personally argue that this function is best implemented outside of OpenEMS in a separate proxy service, like NGINX.
Regards,
Stefan