infra/old/cluster/nodered/settings-configmap.yaml

65 lines
No EOL
1.7 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: nodered-settings
namespace: nodered
data:
settings.js: |
module.exports = {
// The file containing the flows.
flowFile: 'flows.json',
// Node-RED editor theme
editorTheme: {
page: {
title: "Node-RED - W5ISP"
},
header: {
title: "Node-RED",
image: null
}
},
// Securing the Node-RED editor
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "$2b$08$dKYDBSTCOTgDVQqPNXCq/uzopu6XMbayUNtlvHhoLF0vNVbtscH.a",
permissions: "*"
}]
},
// Securing Node-RED API (optional, uncomment to enable)
// httpNodeAuth: {user:"user",pass:"$2b$08$eqrvB6AnIA68TG8yIJGDfumTlW0tSgUAcrnSxs.sy3mdNYUFZca/a"},
// Enable HTTPS (handled by Kubernetes Ingress)
requireHttps: false,
// The maximum size of HTTP request body in bytes
apiMaxLength: '5mb',
// Context Storage
contextStorage: {
default: {
module: "memory"
}
},
// Configure the logging
logging: {
console: {
level: "info",
metrics: false,
audit: false
}
},
// Disable the editor UI entirely
disableEditor: false,
// Configure node settings
functionGlobalContext: {
// Add any global context variables here
}
}