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:
parent
e9d7fed113
commit
22bc720d27
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -76,6 +76,7 @@ affinity: {}
|
|||
|
||||
postgresql:
|
||||
enabled: true
|
||||
# sslmode: prefer
|
||||
|
||||
auth:
|
||||
## Change me
|
||||
|
|
Loading…
Reference in a new issue