From 81fd0c6d085fb00c12ad7cd0c18d11fbd4450ada Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Tue, 1 Apr 2025 01:15:11 +0200 Subject: [PATCH] Add librechat --- apps/librechat.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/apps/librechat.yaml b/apps/librechat.yaml index be7b8e3..bd625bc 100644 --- a/apps/librechat.yaml +++ b/apps/librechat.yaml @@ -60,7 +60,7 @@ spec: modes: ["SCRAM"] users: - name: librechat - db: admin + db: LibreChat passwordSecretRef: # a reference to the secret that will be used to generate the user's password name: librechat-mongodb-secret roles: @@ -68,6 +68,8 @@ spec: db: admin - name: userAdminAnyDatabase db: admin + - name: readWriteAnyDatabase + db: admin scramCredentialsSecretName: my-scram additionalMongodConfig: storage.wiredTiger.engineConfig.journalCompressor: zlib @@ -90,3 +92,50 @@ spec: resources: requests: storage: 1Gi +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository +metadata: + name: librechat + namespace: librechat +spec: + interval: 1h + url: https://github.com/danny-avila/LibreChat.git + ref: + tag: v0.7.7 + ignore: | + # exclude all + /* + # include charts + !/charts/ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: librechat + namespace: librechat +spec: + interval: 10m + chart: + spec: + chart: ./charts/librechat + sourceRef: + kind: GitRepository + name: librechat + namespace: librechat + interval: 10m + values: + replicaCount: 1 + # image: + # tag: v0.7.7 # Not pinned in chart for some reason + config: + envSecrets: + secretRef: librechat + secretKeyRef: + - name: MONGO_URI + secretName: librechat-librechat-librechat + secretKey: connectionString.standardSrv + env: + TRUST_PROXY: 1 + DOMAIN_CLIENT: https://librechat.lumpiasty.xyz + ALLOW_REGISTRATION: false