matrix-synapse: Add redis dbid to configuration
This will only have an effect in the upcoming Synapse 1.78.0 release Fixes #33
This commit is contained in:
parent
78b5323c67
commit
f9238b77e3
3 changed files with 24 additions and 3 deletions
|
@ -270,3 +270,14 @@ Set redis password
|
||||||
{{ .Values.externalRedis.password }}
|
{{ .Values.externalRedis.password }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Set redis database id
|
||||||
|
*/}}
|
||||||
|
{{- define "matrix-synapse.redis.dbid" -}}
|
||||||
|
{{- if .Values.redis.dbid -}}
|
||||||
|
{{ .Values.redis.dbid }}
|
||||||
|
{{- else if .Values.externalRedis.dbid -}}
|
||||||
|
{{ .Values.externalRedis.dbid }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -60,21 +60,25 @@ stringData:
|
||||||
{{- $redisHost := include "matrix-synapse.redis.host" . }}
|
{{- $redisHost := include "matrix-synapse.redis.host" . }}
|
||||||
{{- $redisPort := include "matrix-synapse.redis.port" . }}
|
{{- $redisPort := include "matrix-synapse.redis.port" . }}
|
||||||
{{- $redisPass := include "matrix-synapse.redis.password" . }}
|
{{- $redisPass := include "matrix-synapse.redis.password" . }}
|
||||||
|
{{- $redisDbid := include "matrix-synapse.redis.dbid" . }}
|
||||||
|
|
||||||
## Redis configuration ##
|
## Redis configuration ##
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: {{ $redisHost | quote }}
|
host: {{ $redisHost | quote }}
|
||||||
|
{{- if $redisPort }}
|
||||||
|
port: {{ $redisPort }}
|
||||||
|
{{- end }}
|
||||||
{{- if or .Values.redis.auth.enabled .Values.redis.usePassword .Values.redis.password .Values.redis.auth.password .Values.externalRedis.password }}
|
{{- if or .Values.redis.auth.enabled .Values.redis.usePassword .Values.redis.password .Values.redis.auth.password .Values.externalRedis.password }}
|
||||||
{{- if and $redisPass (not .Values.redis.existingSecret) }}
|
{{- if and $redisPass (not .Values.redis.existingSecret) }}
|
||||||
password: {{ $redisPass | quote }}
|
password: {{ $redisPass | quote }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
password: "@@REDIS_PASSWORD@@"
|
password: "@@REDIS_PASSWORD@@"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $redisPort }}
|
|
||||||
port: {{ $redisPort }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if $redisDbid }}
|
||||||
|
dbid: {{ $redisDbid }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with .Values.extraSecrets }}
|
{{- with .Values.extraSecrets }}
|
||||||
|
|
|
@ -732,6 +732,9 @@ externalPostgresql:
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
## Database ID for non-default database
|
||||||
|
# dbid: 0
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
enabled: true
|
enabled: true
|
||||||
# XXX Change me!
|
# XXX Change me!
|
||||||
|
@ -760,6 +763,9 @@ externalRedis:
|
||||||
port: 6379
|
port: 6379
|
||||||
# password: synapse
|
# password: synapse
|
||||||
|
|
||||||
|
## Database ID for non-default database
|
||||||
|
# dbid: 0
|
||||||
|
|
||||||
## The name of an existing secret with redis credentials
|
## The name of an existing secret with redis credentials
|
||||||
#existingSecret: redis-secrets
|
#existingSecret: redis-secrets
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue