Skip to content

Commit

Permalink
skip MONGO_URI in config env if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pnancarrow committed Dec 10, 2024
1 parent 7caa5c4 commit ee9a0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/librechat/templates/configmap-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ data:
{{- if not (dig "configEnv" "MEILI_HOST" "" .Values.librechat) }}
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 }}

0 comments on commit ee9a0f3

Please sign in to comment.