mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 02:53:11 -06:00
feat(helm-chart): add configuration for syncapi/search
This commit is contained in:
parent
b742a0d10d
commit
dab53196aa
|
|
@ -216,6 +216,9 @@ For more information see:
|
|||
| syncapi.image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
|
||||
| syncapi.image.repository | string | `"matrixdotorg/dendrite-polylith"` | image repository |
|
||||
| syncapi.image.tag | string | chart.appVersion | image tag |
|
||||
| syncapi.config.search.enabled | bool | `false` | Fulltext indexing using [Bleve](https://github.com/blevesearch/bleve) |
|
||||
| syncapi.config.search.index_path | string | `/var/dendrite/searchindex` | Where to store search index |
|
||||
| syncapi.config.search.language | string | `en` | Indexing language |
|
||||
| userapi | object | values.yaml | Configure the User API For more information see [the sample dendrite configuration](https://github.com/matrix-org/dendrite/blob/main/dendrite-sample.polylith.yaml) |
|
||||
| userapi.config.bcrypt_cost | int | 10 | bcrypt cost (2^[cost] = rounds) |
|
||||
| userapi.database | object | See values.yaml | Override general dendrite.database parameters. |
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@
|
|||
{{- with (index $.Values "mediaapi") }}
|
||||
{{- $_ := set .persistence "media" $.Values.persistence.media -}}
|
||||
{{- end }}
|
||||
{{- with (index $.Values "syncapi") }}
|
||||
{{- $_ := set .persistence "search" $.Values.persistence.search -}}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{ include "common.values.setup" . }}
|
||||
{{- $_ := set .Values.persistence "dendrite-key" (include "dendrite.keyVolume" . | fromYaml) -}}
|
||||
|
|
|
|||
|
|
@ -189,6 +189,10 @@ stringData:
|
|||
max_idle_conns: {{ default .Values.dendrite.database.max_idle_conns .Values.syncapi.database.max_idle_conns }}
|
||||
conn_max_lifetime: {{ default .Values.dendrite.database.conn_max_lifetime .Values.syncapi.database.conn_max_lifetime }}
|
||||
{{- end }}
|
||||
search:
|
||||
enabled: {{ default "false" .Values.syncapi.config.search.enabled }}
|
||||
index_path: {{ default "/var/dendrite/searchindex" .Values.syncapi.config.search.index_path | quote }}
|
||||
language: {{ default "en" .Values.syncapi.config.search.language }}
|
||||
user_api:
|
||||
{{- if .Values.dendrite.polylithEnabled }}
|
||||
internal_api:
|
||||
|
|
|
|||
|
|
@ -46,6 +46,11 @@ ingress:
|
|||
# -- Configure persistence settings for the chart under this key.
|
||||
# @default -- See values.yaml
|
||||
persistence:
|
||||
search:
|
||||
enabled: false
|
||||
mountPath: &searchPath /var/dendrite/searchindex
|
||||
accessMode: ReadWriteOnce
|
||||
size: 5Gi
|
||||
media:
|
||||
enabled: false
|
||||
mountPath: &mediaPath /var/dendrite/media
|
||||
|
|
@ -336,6 +341,11 @@ syncapi:
|
|||
# -- Maximum connection lifetime
|
||||
# @default -- dendrite.database.conn_max_lifetime
|
||||
conn_max_lifetime: null
|
||||
config:
|
||||
search:
|
||||
enabled: "false"
|
||||
index_path: *searchPath
|
||||
language: "en" # more possible languages can be found at https://github.com/blevesearch/bleve/tree/master/analysis/lang
|
||||
|
||||
# -- Configure the Room Server
|
||||
# For more information see [the sample dendrite configuration](https://github.com/matrix-org/dendrite/blob/main/dendrite-sample.polylith.yaml)
|
||||
|
|
|
|||
Loading…
Reference in a new issue