d579ddb8e7
As discussed yesterday, a simplified version of [my helm](https://github.com/S7evinK/dendrite-helm) which deploys a monolith with internal NATS and an optionally enabled PostgreSQL server. If the PostgreSQL dependency is not enabled, a user specified connection string is constructed. Co-authored-by: kegsay <kegan@matrix.org>
17 lines
619 B
YAML
17 lines
619 B
YAML
{{- define "override.config" }}
|
|
{{- if .Values.postgresql.enabled }}
|
|
{{- $_ := set .Values.dendrite_config.global.database "connection_string" (print "postgresql://" .Values.postgresql.auth.username ":" .Values.postgresql.auth.password "@" .Release.Name "-postgresql/dendrite?sslmode=disable") -}}
|
|
{{ end }}
|
|
global:
|
|
private_key: /etc/dendrite/secrets/signing.key
|
|
jetstream:
|
|
in_memory: false
|
|
{{ if (gt (len (.Files.Glob "appservices/*")) 0) }}
|
|
app_service_api:
|
|
config_files:
|
|
{{- range $x, $y := .Files.Glob "appservices/*" }}
|
|
- /etc/dendrite/appservices/{{ base $x }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|