2026-03-04 21:07:04 +01:00
|
|
|
/**
|
|
|
|
|
* Node-RED Settings for EVOLV Docker Development Environment
|
|
|
|
|
*
|
|
|
|
|
* This configuration is for LOCAL DEVELOPMENT ONLY.
|
|
|
|
|
* No authentication — do not expose to untrusted networks.
|
|
|
|
|
*/
|
|
|
|
|
module.exports = {
|
|
|
|
|
flowFile: '/data/flows.json',
|
|
|
|
|
userDir: '/data',
|
|
|
|
|
|
|
|
|
|
// Bind to all interfaces inside the container
|
|
|
|
|
uiHost: '0.0.0.0',
|
|
|
|
|
uiPort: 1880,
|
|
|
|
|
|
|
|
|
|
// No authentication for dev environment
|
|
|
|
|
adminAuth: null,
|
|
|
|
|
|
2026-05-08 11:21:21 +02:00
|
|
|
// Projects ON: each example folder under /data/projects is a Node-RED
|
|
|
|
|
// project (a small Git repo). Operator switches between them in the
|
|
|
|
|
// editor (Projects → Open Project). The entrypoint bootstraps every
|
|
|
|
|
// examples/<name>/ into /data/projects/<name>/ on first run; after
|
|
|
|
|
// that, edits live in the persistent nodered_data volume. To copy
|
|
|
|
|
// edits back into the EVOLV source tree, run:
|
|
|
|
|
// docker cp evolv-nodered:/data/projects/<name>/flow.json \
|
|
|
|
|
// examples/<name>/flow.json
|
2026-03-04 21:07:04 +01:00
|
|
|
editorTheme: {
|
|
|
|
|
projects: {
|
2026-05-08 11:21:21 +02:00
|
|
|
enabled: true,
|
|
|
|
|
workflow: {
|
|
|
|
|
// Manual: editor doesn't auto-commit. Use the Projects UI
|
|
|
|
|
// (or `git` from a shell into the container) to commit.
|
|
|
|
|
mode: 'manual'
|
|
|
|
|
}
|
2026-03-04 21:07:04 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Global context available to function nodes
|
|
|
|
|
functionGlobalContext: {
|
|
|
|
|
locationId: process.env.LOCATION_ID || 'docker-dev',
|
|
|
|
|
uuid: require('crypto').randomUUID()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Logging
|
|
|
|
|
logging: {
|
|
|
|
|
console: {
|
|
|
|
|
level: 'info',
|
|
|
|
|
metrics: false,
|
|
|
|
|
audit: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Increase max message size for large telemetry payloads
|
|
|
|
|
apiMaxLength: '5mb',
|
|
|
|
|
|
|
|
|
|
// Diagnostic reporting off for dev
|
|
|
|
|
diagnostics: {
|
|
|
|
|
enabled: false
|
|
|
|
|
}
|
|
|
|
|
};
|