Automation

Node-RED hosting

Low-code flow automation and IoT. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.

4.x – 5.x

Versions

None (flows stored as files)

Database

Node

Category

SSL included
Firewall locked
DB auto-created
Live in minutes
Overview

What is Node-RED?

Node-RED is an open-source, low-code tool for wiring together devices, APIs and online services. You build flows by dragging nodes onto a canvas in the browser and connecting them.

It is widely used for IoT, home and building automation, MQTT messaging, webhooks, data processing and simple dashboards. Thousands of community nodes add support for devices, cloud services and protocols.

Node-RED's editor has no login by default, so anyone who can open it can run code on the server. SharkCluster always sets up a login and checks that the editor refuses requests without it before finishing the install.

Each Node-RED app gets its own copy of Node-RED, its own settings and its own port, so several instances can run on one server without sharing versions or installed nodes. PM2 keeps it running and nginx or Apache serves it on your domain with WebSocket support.

Quick facts

Version
4.x – 5.x
Database
None (flows stored as files)
Category
Node
  • SSL included
  • Firewall locked
  • DB auto-created
  • Live in minutes
Why SharkCluster

Why Node-RED on SharkCluster?

Secure by default

The editor requires a login and only listens on 127.0.0.1, so it is reachable only through the web server on your domain.

Encrypted credentials

A random credentialSecret encrypts API keys and passwords saved in flows.

Isolated instances

Every app has its own Node-RED install, settings and port, so instances never conflict.

Right version for your Node.js

Node-RED 5.x is installed on Node.js 22.9+, otherwise 4.x; an existing Node.js 18+ is kept so other apps keep working.

No database needed

Flows are stored in files, so there is no database to manage.

MQTT ready

An MQTT broker on the same server is reachable from flows at localhost:1883.

Features

What you get with Node-RED

  • Node-RED 5.x (Node.js 22.9+) or 4.x

  • Editor login (user admin, generated password)

  • Login checked before install completes

  • Encrypted flow credentials

  • Listens on 127.0.0.1 only

  • PM2 process with restart on reboot

  • Memory-based restart at 512 MB

  • WebSocket support through the proxy

  • Install extra nodes from the palette

  • Projects and telemetry turned off

  • Custom domain support

  • Free SSL certificate

Use cases

What Node-RED is built for

IoT data processing

Read sensor data over MQTT, transform it and send it to databases or dashboards.

Home and building automation

Connect devices, schedules and alerts with visual flows.

API and webhook glue

Receive webhooks, call APIs and pass data between services.

Alerts and notifications

Send email, chat or SMS messages when conditions are met.

Prototyping

Try integrations quickly before writing a full application.

System requirements

Server specs for
Node-RED

Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.

  • Minimum specs shown before deploy
  • Panel blocks deploy if server is undersized
  • Upgrade path available inside the panel
Node.js
18.5 or newer; Node.js 22 is installed when missing or older than 18.
Database
None; flows are stored as files.
Memory
1 GB RAM minimum.
CPU
1 vCPU minimum.
Storage
5 GB+ SSD.
Architecture

How Node-RED fits together

1

Domain

Your Node-RED subdomain points to the SharkCluster server.

2

Web server

nginx or Apache forwards requests and WebSocket connections to Node-RED.

3

Node-RED

Runs under PM2 as <app>-nodered on its own local port (1880–1999).

4

Data folder

settings.js, flows.json, credentials and installed nodes live in htdocs/data.

5

MQTT (optional)

A Mosquitto broker on the same server is available at localhost:1883.

Get started

After your Node-RED deploy

  1. 1

    Create a Node-RED application

    Select Node-RED in the SharkCluster panel.

  2. 2

    Connect your domain

    Point a subdomain to the server and enable SSL.

  3. 3

    Log in to the editor

    Sign in with the username admin and the password shown in the panel.

  4. 4

    Build a flow

    Drag an inject node and a debug node onto the canvas, connect them and click Deploy.

  5. 5

    Install extra nodes

    Use Menu > Manage palette to add community nodes.

  6. 6

    Connect MQTT

    If you run an MQTT broker on the same server, use localhost:1883 in your MQTT nodes.

Deployment

Ship Node-RED your way

Check Node.js

An existing Node.js 18+ is kept; otherwise Node.js 22 is installed.

Install Node-RED

Node-RED is installed with npm into the app's own folder as the app user.

Write settings

settings.js sets the login, a random credential secret, 127.0.0.1 listening and the app's port.

Start with PM2

PM2 runs Node-RED as the app user and starts it again after reboots.

Check the login

The install waits for Node-RED to start and confirms the editor rejects requests without a login.

Configure the web server

nginx or Apache forwards your domain to Node-RED with WebSocket support.

Performance

Keeping Node-RED fast

Keep flows small

Split large flows into tabs and subflows so they are easier to run and debug.

Limit debug output

Disable debug nodes you do not need; they add work and browser traffic.

Watch memory

PM2 restarts Node-RED above 512 MB; check for flows that hold large data in context.

Use persistent context carefully

Store only what you need in global or flow context.

Deployment checklist

Before you go live

  • Node-RED is running in PM2

  • Editor login works

  • Domain DNS points to the server

  • SSL is enabled

  • Editor connects (no "lost connection" message)

  • A test flow deploys

Production checklist

Ready your Node-RED for launch

  • Change the admin password

  • Back up flows.json and the credentials file

  • Keep the credential secret in settings.js unchanged

  • Review community nodes before installing

  • Protect HTTP endpoints you create in flows

  • Keep Node-RED and nodes updated

Useful commands

Working with Node-RED

View logs

Show Node-RED output and errors.

bash
pm2 logs <app>-nodered

Restart Node-RED

Apply changes to settings.js.

bash
pm2 restart <app>-nodered

Create a new password hash

Run in htdocs/data, paste the hash into settings.js and restart.

bash
../node_modules/.bin/node-red admin hash-pw

Back up flows

Copy flows and encrypted credentials to a safe place.

bash
cp htdocs/data/flows*.json ~/nodered-backup/
Troubleshooting

Common Node-RED issues & fixes

Editor shows "Lost connection to server"

Cause
WebSocket connections are not reaching Node-RED.
Solution
Check that the web server config includes the Upgrade and Connection headers (nginx) or proxy_wstunnel (Apache).

Saved credentials no longer work

Cause
The credentialSecret in settings.js changed.
Solution
Restore the original credentialSecret from a backup or re-enter the credentials in each node.

Installing a node from the palette fails

Cause
npm could not build the node or the server ran out of memory.
Solution
Check pm2 logs for the npm error, free memory or install the node from the command line.

502 Bad Gateway

Cause
Node-RED is not running.
Solution
Check pm2 status and pm2 logs <app>-nodered, then restart the process.
Security config

Hardened before your first request

Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.

  • Change the generated admin password after first login.

  • Never remove adminAuth from settings.js.

  • Keep Node-RED listening on 127.0.0.1 only.

  • Add authentication to HTTP-in endpoints you expose.

  • Install community nodes only from trusted authors.

  • Serve the editor over HTTPS.

Database

The data layer behind Node-RED

No database

Node-RED stores flows in flows.json and encrypted credentials in a separate file in the data folder.

Connect databases from flows

Use nodes for MySQL, PostgreSQL, MongoDB, InfluxDB and others to read and write data.

Environment

Node-RED environment configuration

settings.js

Located in htdocs/data; controls the login, port, credential secret and editor options.

Data folder

htdocs/data holds flows, credentials, installed nodes and the npm cache.

Upgrade safely

A safe Node-RED upgrade path

  1. 1

    Back up the data folder

    Copy htdocs/data before upgrading.

  2. 2

    Check Node.js

    Node-RED 5.x needs Node.js 22.9 or newer.

  3. 3

    Upgrade

    Update the node-red package in htdocs with npm as the app user.

  4. 4

    Restart and test

    Restart the PM2 process and test your flows.

Take a snapshot before every upgrade so a bad release can be rolled back in minutes.

Who owns what

We manage the server, you own the store

SharkCluster manages

  • VPS infrastructure
  • Node.js runtime
  • PM2 process
  • Web server
  • SSL
  • Firewall
  • Backups where enabled

You manage

  • Flows
  • Installed nodes
  • Credentials in flows
  • Editor password
  • Node-RED upgrades
  • Endpoints exposed by flows

Everything below the application line — from nginx to backups — is infrastructure. Your code, content and store configuration are always yours, and you keep full SSH and root access.

FAQ

Frequently Asked Questions

The questions we hear most from people deploying Node-RED on SharkCluster.

Contact support

Node-RED is an open-source, low-code tool for connecting devices, APIs and services with visual flows in the browser.

Use the username admin and the password shown in the SharkCluster panel.

No. Flows are stored as files. You can still connect databases from your flows.

Node-RED 5.x when the server has Node.js 22.9 or newer, otherwise Node-RED 4.x.

Yes. Each app has its own Node-RED copy, settings and port.

Yes. If an MQTT broker runs on the same server, use localhost:1883 in Node-RED's MQTT nodes.

One-click setup

From deploy to live in minutes

Stack configured

Runtime, process manager and config files set up for you.

None (flows stored as files) wired

Database created with a user and credentials in your config.

SSL + firewall

Free Let's Encrypt certificate and closed-by-default UFW rules.

Deploy anytime

Push with Git, or use the built-in file manager and ZIP upload.

Start your journey today

How do you start
with SharkCluster?

To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.

No lock-in contracts
No credit card required
Dedicated DevOps manager