Hosting PWA in node-red without login (so public access)

I have various control apps on epic that I run my own PWA webapps for the hMI, and I since I was also doing some node-red, I thought the easiest hosting method may be to host the files in unsecured storage (no login required) and then hosting that with Node-red as a static webpage. This works great, but only if logged into the groov manage areas.

Any new browser to incognito request currently requests a login that I can’t find any way to set it to publish in groov manage? I just get this until I login.
401: Unauthorized

The problem is that the node-red already requires a user loged in to access it, is there any way to make it have public access. My app has its own jwt login system, I don’t want to have another layer on it from node-red.

If not, I can host with nodejs in shell, but for some simple control applications, this would be nice to just host in node-red directly.

Thanks
Mike

Not sure if you will be able to publish on port 80/443 without the login outside of shell. Can you set Node-red to publish your webapp on another port and use a reverse proxy somewhere else on your network?

Thanks, I’ll look into that, I don’t know yet how proxies work, but I’ll check. seems then you can’t use nodered publicly, which I get for security, but would be nice to run it with dashboards and apps that have their own security layer within it, like out PWAs. Anyway, if I can’t find a way, I’ll host in shell with nodejs or python, as we already use shell on most of our control sytems. was just looking at options as sometimes the simplicity is nicer and less complex to deploy.

Just ended up hosting in nginx, along side the existing groov manage and groov view web servers. by far the simplest since this is already there and a single config file to add/register another webserver, which I like since that is simple to deploy as well.

2 Likes