# Publishing dashboard

**URL:** https://discourse.nodered.org/t/publishing-dashboard/27106
**Category:** Dashboard
**Created:** [22 May 2020 23:43 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106 "2020-05-22T23:43:33Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [22 May 2020 23:43 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/1 "2020-05-22T23:43:33Z")

</div>

Hi guys. I have just completed my functionality, and i will like to publish my dashboard in a web server and control the access with user and password . Is this possible?

Thank you all

---

<div class="post-metadata">

### Author: ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)
#### Post date: [22 May 2020 23:47 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/2 "2020-05-22T23:47:30Z")

</div>

Yes is it possible. Take a look at these forums.... Lots of help...  
[https://discourse.nodered.org/search?q=dashboard%20password](https://discourse.nodered.org/search?q=dashboard%20password)

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 06:08 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/3 "2020-05-23T06:08:58Z")

</div>

Password is possible. Single user only however.

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 09:46 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/4 "2020-05-23T09:46:49Z")

</div>

Yeah i have read that if you modify the settings.js you can protect the dashboard with an user and password, but i dont know if this will stay when i publish my dashboard on the internet or not

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 09:53 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/5 "2020-05-23T09:53:06Z")

</div>

Opening node-red to the internet is not recommended unless you know what you are doing.  
Here is a long read about [how to secure your node-red instance](https://github.com/node-red/cookbook.nodered.org/wiki/How-to-safely-expose-Node-RED-to-the-Internet).

It may be a lot safer and easier to install a vpn server and connect to your node-red instance over the vpn connection.

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 09:58 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/6 "2020-05-23T09:58:09Z")

</div>

But could i connect to my dashboard from other red? I mean 50 kilometres away. If i install vpn other users could access to the dashboard?

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 10:02 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/7 "2020-05-23T10:02:17Z")

</div>

> If i install vpn other users could access to the dashboard?

Yes, however, the device you use to connect to node red will require a vpn client to connect.

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 10:20 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/8 "2020-05-23T10:20:17Z")

</div>

Ok, that´s true. So i need to know how to install a vpn server on mi rpi. After that, how publish my dashboard on the vpn server and how protect it ? Im looking for solutions but i dont find nothing, all old posts and different set ups

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 10:30 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/9 "2020-05-23T10:30:31Z")

</div>

In fact, not in my rpi. I should use vpn on my personal computer because i have node-red on my personal computer.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 10:34 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/10 "2020-05-23T10:34:15Z")

</div>

Ok so there is no "simple" way to do this, as security usually isn't simple.

You can setup a vpn server on any device in your network as the idea is that you can access your local network over the vpn tunnel.

Here is a [comprehensive guide](https://dzone.com/articles/how-to-setup-an-openvpn-server-on-a-raspberry-pi) for a raspberry pi.

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 10:37 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/11 "2020-05-23T10:37:13Z")

</div>

Ok lets imagine i have the vpn server on my personal computer. How can i put the node-red dashboard into it ? Im new on this tecnlogoy sry if i seem to be stupid jajaja

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 10:41 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/12 "2020-05-23T10:41:12Z")

</div>

The dashboard sits on a url in the browser, lets say: [http://192.168.1.20:1880/ui/](http://192.168.1.20:1880/ui/).

When you are connected over the vpn tunnel, you can connect to the same address in the browser (as you were in your local network).

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 10:42 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/13 "2020-05-23T10:42:54Z")

</div>

Ok so a man who is 50 km away from me, knowing the address and the security (because i imagine you can protect the vpn server) can access to the dashboard info.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 10:59 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/14 "2020-05-23T10:59:17Z")

</div>

To connect to the vpn server you need to have a ssl certificate that encrypts the data that goes over the internet toward your network (as explained in the guide linked above)

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 11:32 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/15 "2020-05-23T11:32:30Z")

</div>

So, in your tutorial, when i have to define the static IP, i write the ip where i have my dashboard?

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 11:39 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/16 "2020-05-23T11:39:42Z")

</div>

The static ip of the device where you install the openvpn server

---

<div class="post-metadata">

### Author: ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)
#### Post date: [23 May 2020 11:45 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/17 "2020-05-23T11:45:21Z")

</div>

Ok i have just understand all but i have a doubt. How the client in his mobile phone is going to have the OVPN file? If he doesnt have it, i would not be able to connect to the vpn. Thank you for your time, you are helping me a lot!

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 May 2020 12:04 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/18 "2020-05-23T12:04:53Z")

</div>

Yes everyone who wants to connect needs a openvpn client, the ovpn file can be opened with the openvpn client. Those clients exists on all platforms.

---

<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: [22 June 2020 12:23 UTC](https://discourse.nodered.org/t/publishing-dashboard/27106/20 "2020-06-22T12:23:55Z")

</div>

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