Additional Hardening & Data Flow
Part of FIBER Lite's complete pre-integrated pipeline, on top of the base Install Node-RED step. Optional but recommended on a FIBER install too if you want the same hardening.
-
Set an explicit credential-encryption secret. Without this, Node-RED regenerates a new one on every restart and any stored flow credentials become unrecoverable. In
~/.node-red/settings.js, uncomment and set:credentialSecret: "<a random secret>", -
Secure the editor. It is wide open by default — Node-RED's own install output explicitly warns against exposing it unsecured. Generate a password hash:
node-red admin hash-pwThen, in
settings.js, uncomment and fill in theadminAuthblock with that hash:adminAuth: {type: "credentials",users: [{username: "admin",password: "<bcrypt hash from above>",permissions: "*"}]},sudo systemctl restart nodered.service -
Install the InfluxDB node:
cd ~/.node-red && npm install node-red-contrib-influxdbsudo systemctl restart nodered.servicetipA restart is required — Node-RED does not hot-load newly installed node types while already running.
-
Build a flow: MQTT in (topic
application/+/device/+/event/up, brokerlocalhost:1883) → Function (parse the ChirpStack uplink JSON, setmsg.measurementandmsg.payload = [fields, tags]) → InfluxDB out (config node:influxdbVersion: "2.0",url: http://localhost:8086, token from the InfluxDB setup step below; node:org: fiber-lite,bucket: fiber-lite).tipWithout a LoRaWAN gateway/device connected yet, this flow is scaffolding — build it now so it's ready as soon as a gateway and device are registered (see Register a Gateway and a Device above) and passing real uplinks.