-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.js
More file actions
60 lines (49 loc) · 1.59 KB
/
Copy pathsettings.js
File metadata and controls
60 lines (49 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* Custom Node-RED Settings
* Auto-configured for Customer Support Agent with Cloudflare AutoRAG
* Enhanced with customer profile management and conversation history
*/
module.exports = {
// Flow file path (using our custom created flow)
flowFile: 'flows-updated.json',
// Configure user directory
userDir: '/Users/krempovych/.node-red/',
// Node modules to load
nodesDir: [
'/Users/krempovych/Workspaces/Customer Support/nodes'
],
// Node-RED port (using alternate port to avoid conflicts)
uiPort: process.env.PORT || 1883,
// Security - set a credential secret for better security
credentialSecret: "customer-support-agent-secret",
// Dashboard configuration
ui: { path: "ui" },
// Logging settings
logging: {
console: {
level: "info",
metrics: false,
audit: false
}
},
// Additional settings for function nodes
functionGlobalContext: {
// Expose additional modules that can be used in function nodes
os:require('os'),
fs:require('fs'),
path:require('path'),
customerDb:require('./customer-db')
},
// Configure node types that are enabled
nodesExcludes: [
// Exclude any node types you don't want to use
],
// Allow the Function, Template and Dashboard UI nodes
functionExternalModules: true,
// Enable projects feature (optional - set to true if you want to use projects)
editorTheme: {
projects: {
enabled: false
}
}
};