# Securing a Public Node-RED UI Behind Nginx Reverse Proxy

**URL:** https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817
**Category:** General
**Created:** [23 January 2024 05:55 UTC](https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817 "2024-01-23T05:55:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)
#### Post date: [23 January 2024 05:55 UTC](https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817/1 "2024-01-23T05:55:12Z")

</div>

Hello everyone,

I've set up a Node-RED UI that is publicly accessible via an Nginx reverse proxy. In this setup, my Node-RED instance is password-protected, and the UI I've published is designed for display purposes only – it doesn't include any interactive features for visitors, just data presentation.

Is there any additional security measures I should consider. Currently, the setup includes:

- Password protection for Node-RED.
- The UI is read-only with no interactive elements.

Any suggestions or insights would be greatly appreciated.

Thank you!

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [23 January 2024 09:51 UTC](https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817/2 "2024-01-23T09:51:41Z")

</div>

There have been a lot of discussions on securing NR recently.

Please have a search on the forum otherwise people are going to have to repeat a lot of advice 🙂

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [23 January 2024 10:55 UTC](https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817/3 "2024-01-23T10:55:15Z")

</div>

There are the usual things. Make sure you are using https and make sure that you run the public-facing site against some of the free security, performance and accessibility checkers.

HTTPS security should be used even if users are not inputting.

Ideally, don't expose the Editor to the Internet directly. If remote access is needed, better to use it indirectly using Cloudflare Zero Trust or similar. It is not recommended to rely on Node-RED logins for production use (or at least I don't recommend it), use something more battle tested - Zero Trust has a built-in service for example with 50 users on the free tier.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 March 2024 10:55 UTC](https://discourse.nodered.org/t/securing-a-public-node-red-ui-behind-nginx-reverse-proxy/84817/4 "2024-03-23T10:55:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
