fix(synapse): fix custom config and don't decode stringData
This commit is contained in:
@@ -24,7 +24,7 @@ maintainers:
|
|||||||
name: synapse
|
name: synapse
|
||||||
sources: []
|
sources: []
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.4
|
version: 0.0.5
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- cloud
|
- cloud
|
||||||
|
|||||||
@@ -83,68 +83,20 @@ questions:
|
|||||||
attrs:
|
attrs:
|
||||||
# Include{fixedEnv}
|
# Include{fixedEnv}
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
- variable: coturn
|
|
||||||
|
- variable: synapse
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
label: "Coturn Configuration"
|
label: "Synapse Configuration"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: enabled
|
- variable: loadCustomConfig
|
||||||
label: "Enable Coturn"
|
label: "Load Custom Config"
|
||||||
|
description: "Load custom config located in /data/custom.yaml"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: mail
|
|
||||||
group: "Container Configuration"
|
|
||||||
label: "Mail Configuration"
|
|
||||||
schema:
|
|
||||||
additional_attrs: true
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
- variable: enabled
|
|
||||||
label: "Enable Mail"
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
show_subquestions_if: true
|
|
||||||
subquestions:
|
|
||||||
- variable: from
|
|
||||||
label: "From: "
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "Matrix <matrix@example.com>"
|
|
||||||
- variable: riotUrl
|
|
||||||
label: "Riot URL"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
- variable: host
|
|
||||||
label: "Host"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
- variable: port
|
|
||||||
label: "Port"
|
|
||||||
schema:
|
|
||||||
type: int
|
|
||||||
default: 25
|
|
||||||
- variable: username
|
|
||||||
label: "Username"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
- variable: password
|
|
||||||
label: "Password"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
private: true
|
|
||||||
- variable: requireTransportSecurity
|
|
||||||
label: "Require Transport Security"
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
|
|
||||||
- variable: matrix
|
- variable: matrix
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
@@ -346,6 +298,70 @@ questions:
|
|||||||
type: string
|
type: string
|
||||||
default: "WARNING"
|
default: "WARNING"
|
||||||
|
|
||||||
|
- variable: mail
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Mail Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable Mail"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: from
|
||||||
|
label: "From: "
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "Matrix <matrix@example.com>"
|
||||||
|
- variable: riotUrl
|
||||||
|
label: "Riot URL"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: host
|
||||||
|
label: "Host"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: port
|
||||||
|
label: "Port"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 25
|
||||||
|
- variable: username
|
||||||
|
label: "Username"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: password
|
||||||
|
label: "Password"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
private: true
|
||||||
|
- variable: requireTransportSecurity
|
||||||
|
label: "Require Transport Security"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
|
- variable: coturn
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Coturn Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable Coturn"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
label: "Configure Service(s)"
|
label: "Configure Service(s)"
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ stringData:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if $previous }}
|
{{- if $previous }}
|
||||||
{{- $msk = ( index $previous.data "macaroon_secret_key" ) | b64dec }}
|
{{- $msk = ( index $previous.data "macaroon_secret_key" ) }}
|
||||||
macaroon_secret_key: {{ ( index $previous.data "macaroon_secret_key" ) }}
|
macaroon_secret_key: {{ ( index $previous.data "macaroon_secret_key" ) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $msk = randAlphaNum 50 }}
|
{{- $msk = randAlphaNum 50 }}
|
||||||
macaroon_secret_key: {{ $msk | b64enc | quote }}
|
macaroon_secret_key: {{ $msk | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.coturn.enabled -}}
|
{{- if .Values.coturn.enabled -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user