Skip to content

Commit 93624de

Browse files
zchef2kZac Durham
and
Zac Durham
authored
added to the IDE chart to support backend auth options (#14)
Co-authored-by: Zac Durham <[email protected]>
1 parent 1d750f1 commit 93624de

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

charts/langflow-ide/templates/backend-statefulset.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ spec:
120120
- name: LF_CHART_EXTERNALDB_PASSWORD
121121
{{- toYaml .Values.langflow.backend.externalDatabase.password | nindent 14 }}
122122
{{- end }}
123+
{{- if and (hasKey .Values.langflow.backend "autoLogin") (eq .Values.langflow.backend.autoLogin false) }}
124+
- name: LANGFLOW_AUTO_LOGIN
125+
value: "{{ .Values.langflow.backend.autoLogin | default "False" }}"
126+
- name: LANGFLOW_SUPERUSER
127+
value: "{{ .Values.langflow.backend.superuser | default "admin" }}"
128+
- name: LANGFLOW_SUPERUSER_PASSWORD
129+
value: "{{ .Values.langflow.backend.superuserPassword | default (randAlphaNum 32) }}"
130+
- name: LANGFLOW_SECRET_KEY
131+
value: "{{ .Values.langflow.backend.secretKey | default (randAlphaNum 32) }}"
132+
- name: LANGFLOW_NEW_USER_IS_ACTIVE
133+
value: "{{ .Values.langflow.backend.newUserIsActive | default "False" }}"
134+
{{- end }}
123135
resources:
124136
{{- toYaml .Values.langflow.backend.resources | nindent 12 }}
125137
{{- with .Values.langflow.backend.nodeSelector }}

charts/langflow-ide/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ langflow:
128128
# cachingmode: ReadOnly
129129
storageClass: {}
130130

131+
# autoLogin: true|false
132+
# superuser: <superuser login>
133+
# superuserPassword: <superuser password>
134+
# secretKey: <encryption key, optional>
135+
# newUserIsActive: true|false
136+
131137
frontend:
132138
enabled: true
133139
replicaCount: 1

0 commit comments

Comments
 (0)