sliding-sync-proxy: Fix built-in database URL

Will now use sslmode prefer by default, while allowing the user of the
Chart to override said value if wanted.

Fixes #43
This commit is contained in:
Alexander Olofsson 2023-07-10 15:01:01 +02:00
parent e9d7fed113
commit 22bc720d27
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ description: An implementation of MSC3575
appVersion: "0.99.3"
type: application
version: 0.1.1
version: 0.1.2
maintainers:
- name: Alexander Olofsson
email: ace@haxalot.com

View file

@ -9,12 +9,13 @@ metadata:
data:
SYNCV3_BINDADDR: {{ ":8008" | b64enc }}
{{- if .Values.postgresql.enabled }}
SYNCV3_DB: {{ (printf "postgresql://%s:%s@%s:%d/%s"
SYNCV3_DB: {{ (printf "postgresql://%s:%s@%s:%d/%s?sslmode=%s"
.Values.postgresql.auth.username
.Values.postgresql.auth.password
(include "sliding-sync-proxy.postgresql.fullname" .)
5432
.Values.postgresql.auth.database
(.Values.postgresql.sslmode | default "prefer")
) | b64enc }}
{{- else }}
SYNCV3_DB: {{ (printf "postgresql://%s:%s@%s:%d/%s?sslmode=%s"

View file

@ -76,6 +76,7 @@ affinity: {}
postgresql:
enabled: true
# sslmode: prefer
auth:
## Change me