diff --git a/charts/node-red/templates/configmap-node-red.yaml b/charts/node-red/templates/configmap-node-red.yaml index 8ba20c1..0b1d4da 100644 --- a/charts/node-red/templates/configmap-node-red.yaml +++ b/charts/node-red/templates/configmap-node-red.yaml @@ -6,17 +6,4 @@ metadata: {{- include "nodeRed.labels" . | nindent 4 }} data: settings.js: | - module.exports = { - adminAuth: { - type: "{{ required "A valid .Values.nodeRed.settings.adminAuth.type is required!" .Values.nodeRed.settings.adminAuth.type }}", - users: [ - {{- range (.Values.nodeRed.settings.adminAuth.users | default list) }} - { - password: "{{ .password }}", - permissions: "{{ .permissions }}", - username: "{{ .username }}", - }, - {{- end }} - ], - }, - }; + module.exports = {{ toJson .Values.nodeRed.settings }}; diff --git a/charts/node-red/values.yaml b/charts/node-red/values.yaml index 4b03104..0dbf048 100644 --- a/charts/node-red/values.yaml +++ b/charts/node-red/values.yaml @@ -10,7 +10,7 @@ ingress: nodeRed: image: # -- node-red image repository - repository: nodered/node-red + repository: th0th/node-red # -- node-red image tag tag: latest persistence: @@ -18,15 +18,18 @@ nodeRed: enabled: true # -- resources for the node-red statefulset resources: { } - # -- node-red settings + # -- node-red settings (settings.js in YAML format). please refer to https://nodered.org/docs/user-guide/runtime/configuration settings: # -- admin authentication config adminAuth: type: credentials # -- list of users users: [ ] - # - password: "$2y$08$q7DQYqhJrLC0.NnLelnre.IUaE2wQX3/xBiQ1cyAuNva8i5A6760q" + # - password: "$2y$08$q7DQYqhJrLC0.NnLelnre.IUaE2wQX3/xBiQ1cyAuNva8i5A6760q" // encrypted "changeme" # permissions: "*" # username: admin + editorTheme: + projects: + enabled: false # -- time zone timeZone: America/New_York