diff --git a/charts/librechat/templates/configmap-env.yaml b/charts/librechat/templates/configmap-env.yaml index 67593f9..9cc6449 100644 --- a/charts/librechat/templates/configmap-env.yaml +++ b/charts/librechat/templates/configmap-env.yaml @@ -9,9 +9,9 @@ data: {{- if .Values.librechat.configEnv }} {{- toYaml .Values.librechat.configEnv | nindent 2 }} {{- end }} - {{- if not (dig "configEnv" "MEILI_HOST" "" .Values.librechat) }} + {{- if and (not (dig "configEnv" "MEILI_HOST" "" .Values.librechat)) .Values.meilisearch.enabled }} MEILI_HOST: http://{{ include "meilisearch.fullname" .Subcharts.meilisearch }}.{{ .Release.Namespace | lower }}.svc.cluster.local:7700 {{- end }} - {{- if not (dig "configEnv" "MONGO_URI" "" .Values.librechat) | default "" }} + {{- if and (not (dig "configEnv" "MONGO_URI" "" .Values.librechat)) .Values.mongodb.enabled }} MONGO_URI: mongodb://{{ include "mongodb.service.nameOverride" .Subcharts.mongodb }}.{{ .Release.Namespace | lower }}.svc.cluster.local:27017/LibreChat {{- end }} \ No newline at end of file