Hello,
following previous post and the advice got, I would like to enable https connection with Node-RED.
I have already a certificate used for my webserver, the problem is that Node-RED has not been installed with sudo so it will not be able to read this certificate.
Would you have an idea on how to solve it?
Thanks,
Daniele
If required, adding Read access to the node-red process user shouldn't be too strenuous.
be mindful of the Common Name in the cert as it may not match with the host you use for Node RED - so you might get a security warning when accessing Node RED - its more a bother than anything else
I don't know lighttpd either but a quick search took me back to the same page that Marcus shared. You need the mod_proxy module and it has support for proxying web sockets.
#"upgrade" => "enable",
# enable support for Upgrade: websocket
# Depending on the websocket application, please also review
# settings for server.max-read-idle and server.max-write-idle
Hello Marcus,
I have created a new certificate, configured the setting.js file and it works. I have then mapped a random port XYZ to 1880, just to be on the safe side.
There is always some risk. Whether it is significant is hard to judge from seeing just bits of the configuration and not knowing your environment.
As previously stated, if you want to really cut down the risk, use something like CloudFlare Zero Trust which will do a lot of the heavy lifting for you.