LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
706 stars 191 forks source link

(1/2) Support for secure WebSockets #666

Closed lightbirne closed 4 months ago

lightbirne commented 8 months ago

First of all: Thank you for this great piece of software.

This PR allows LaserWeb to be used with HTTPS-enabled servers. It adds a new checkbox in the Server Connection tab to connect over a secure WebSocket (wss://) when trying to reach the backend. This setting is unchecked by default, which reflects the current behavior and should not cause any side effects.

Apache, nginx, stunnel or another reverse proxy is required to encrypt the channel as the lw.comm-server does not (yet) support SSL/TLS.

I will create another PR to automatically fill this setting. It's just a one-liner. However, it may be worth discussing.