Skip to content

Commit

Permalink
Merge pull request #50 from pnancarrow/mongo-uri-disabled
Browse files Browse the repository at this point in the history
skip MONGO_URI in config env if not enabled
  • Loading branch information
hofq authored Dec 12, 2024
2 parents b4ef964 + e7a2998 commit 4acd0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/librechat/templates/configmap-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4acd0f2

Please sign in to comment.