Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat(helm): expose the upload size limit as global.maxFileSizeMB
po-et86d245d89252
diff --git a/helm/README.md b/helm/README.mdindex e685e49c9..fddd35561 100644--- a/helm/README.md+++ b/helm/README.md@@ -148,6 +148,7 @@ helm install weknora ./helm \|-----------|-------------|---------|| `global.storageClass` | Storage class for PVCs | `""` || `global.imagePullSecrets` | Image pull secrets | `[]` |+| `global.maxFileSizeMB` | Maximum upload size in MB (frontend, app, docreader) | `50` || `global.podSecurityContext` | Pod security context | See values.yaml || `global.containerSecurityContext` | Container security context | See values.yaml |diff --git a/helm/templates/app.yaml b/helm/templates/app.yamlindex d555766a4..9b79ca83d 100644--- a/helm/templates/app.yaml+++ b/helm/templates/app.yaml@@ -51,6 +51,8 @@ spec:value: {{ .Values.app.env.GIN_MODE | quote }}- name: TZvalue: {{ .Values.app.env.TZ | quote }}+ - name: MAX_FILE_SIZE_MB+ value: {{ .Values.global.maxFileSizeMB | quote }}# Database configuration- name: DB_DRIVERvalue: "postgres"diff --git a/helm/templates/docreader.yaml b/helm/templates/docreader.yamlindex 229f8bc24..7d2385cac 100644--- a/helm/templates/docreader.yaml+++ b/helm/templates/docreader.yaml@@ -48,6 +48,8 @@ spec:env:- name: STORAGE_TYPEvalue: {{ .Values.docreader.env.STORAGE_TYPE | quote }}+ - name: MAX_FILE_SIZE_MB+ value: {{ .Values.global.maxFileSizeMB | quote }}resources:{{- toYaml .Values.docreader.resources | nindent 12 }}# gRPC health check using grpc_health_probediff --git a/helm/templates/frontend.yaml b/helm/templates/frontend.yamlindex b905fa40b..dd43be080 100644--- a/helm/templates/frontend.yaml+++ b/helm/templates/frontend.yaml@@ -46,6 +46,8 @@ spec:value: {{ .Values.frontend.appHost | default "app" | quote }}- name: APP_PORTvalue: {{ .Values.frontend.appPort | default .Values.app.service.port | quote }}+ - name: MAX_FILE_SIZE_MB+ value: {{ .Values.global.maxFileSizeMB | quote }}ports:- containerPort: 80name: httpdiff --git a/helm/values.yaml b/helm/values.yamlindex 17a128795..3d2c43999 100644--- a/helm/values.yaml+++ b/helm/values.yaml@@ -20,6 +20,11 @@ global:imagePullSecrets: []# - name: regcred+ # -- Maximum upload size in MB, applied to the frontend (nginx+ # client_max_body_size), the app (upload limit) and docreader (gRPC message+ # limit). Same knob as MAX_FILE_SIZE_MB in docker-compose.yml.+ maxFileSizeMB: 50+# -- Default security context for all pods# Note: Official images (nginx, postgres, redis) run as root by default# Enable runAsNonRoot only if using non-root compatible images