Setting up node-red on Ubuntu 22.04. Cant get https and stuck on port 1880

I followed the instructions

Setup Nginx > working perfectly Security certificate > working perfectly Setup vsftpd & secured > working perfectly

Installed Node-red > working fine on http and port 1880 Not working on but on domainname:1880 Setup Credentials Admin & password > working As soon as I block port 1880 or allow line "uiHost: “”, I cant access the node-red server. Regular website still works fine and is getting https.

So I have two issues:

  1. cant get https
  2. cant get rid of port 1880

Please help guide me though this. I have been stuck at it for a few days now

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
January 26, 2023

Hello @thorofasgard

You need to create an Nginx virtual host for the domain name in order to use it instead of the droplet IP address.

We do have an old tutorial for an older Ubuntu version which you can check here:

You can check Step 4 — Setting Up Nginx and examine the configuration.


Site Moderator
Site Moderator badge
January 25, 2023

Hi @thorofasgard,

You need to configure Reverse Proxy in your nginx conf for your domain. Basically, go to /etc/nginx/sites-enabled/yourdomainname.conf. Once inside, you 'll need to configure.

For port 80 it will look something like:

server {
    listen 80;
    server_name your_domain www.your_domain;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

What happened to my answer? I posted a couple of days ago with screenshots. It said it was being reviewed.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel