From e9fdad57d5ea964f7a59ceda5ea59fcfc91802f4 Mon Sep 17 00:00:00 2001 From: Mae Dartmann Date: Mon, 29 Apr 2024 16:07:41 +0200 Subject: [PATCH] [chart] make maxNoteLength configurable Signed-off-by: Mae Dartmann --- chart/README.md | 1 + chart/templates/_helpers.tpl | 2 +- chart/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chart/README.md b/chart/README.md index 9738a5974..855141c13 100644 --- a/chart/README.md +++ b/chart/README.md @@ -31,6 +31,7 @@ A fun, new, open way to experience social media https://iceshrimp.dev | iceshrimp.libreTranslate.apiKey | string | `""` | | | iceshrimp.libreTranslate.apiUrl | string | `""` | | | iceshrimp.libreTranslate.managed | bool | `false` | | +| iceshrimp.maxNoteLength | integer | `3000` | Max note length | | iceshrimp.objectStorage.access_key | string | `""` | | | iceshrimp.objectStorage.access_secret | string | `""` | | | iceshrimp.objectStorage.baseUrl | string | `""` | | diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 7b7d35734..699d1e96d 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -211,7 +211,7 @@ id: 'aid' #───┘ Other configuration └───────────────────────────────────── # Max note length, should be < 8000. -#maxNoteLength: 3000 +maxNoteLength: {{ .Values.iceshrimp.maxNoteLength | default 3000 }} # Maximum lenght of an image caption or file comment (default 1500, max 8192) #maxCaptionLength: 1500 diff --git a/chart/values.yaml b/chart/values.yaml index c705d3ee3..5fef382e2 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -68,6 +68,9 @@ iceshrimp: # Number of worker processes per replica clusterLimit: 1 + # Max note length + maxNoteLength: 3000 + # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters postgresql: # -- disable if you want to use an existing db; in which case the values below