/** * 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, // 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// into /data/projects// 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//flow.json \ // examples//flow.json editorTheme: { projects: { 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' } } }, // 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 } };