fix(mycloud-matrix): some tweaks
This commit is contained in:
parent
41c880d22a
commit
fabb9118c6
4 changed files with 17 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
||||||
{{- if .Values.bridge.signal.enabled }}
|
{{- if .Values.bridge.signal.enabled }}
|
||||||
{{- $domain := .Values.server.host | default .Values.commons.ingress.domain }}
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
@ -37,12 +36,12 @@ spec:
|
||||||
- kind: Secret
|
- kind: Secret
|
||||||
name: "{{ .Release.Name }}-doublepuppet"
|
name: "{{ .Release.Name }}-doublepuppet"
|
||||||
valuesKey: as_token_code
|
valuesKey: as_token_code
|
||||||
targetPath: config.bridge.login_shared_secret_map.{{ $domain | replace "." "\\." }}
|
targetPath: config.bridge.login_shared_secret_map.{{ include "mycloud-matrix.domain" . | replace "." "\\." }}
|
||||||
values:
|
values:
|
||||||
config:
|
config:
|
||||||
homeserver:
|
homeserver:
|
||||||
address: http://{{ .Release.Name }}-synapse:8008
|
address: https://{{ include "mycloud-matrix.host.server" . }}
|
||||||
domain: {{ $domain }}
|
domain: {{ include "mycloud-matrix.domain" . }}
|
||||||
appservice:
|
appservice:
|
||||||
address: http://{{ .Release.Name }}-mautrix-signal:29328
|
address: http://{{ .Release.Name }}-mautrix-signal:29328
|
||||||
database:
|
database:
|
||||||
|
@ -57,19 +56,21 @@ spec:
|
||||||
sync_direct_chat_list: true
|
sync_direct_chat_list: true
|
||||||
double_puppet_server_map:
|
double_puppet_server_map:
|
||||||
example.com: null
|
example.com: null
|
||||||
{{ $domain }}: http://{{ .Release.Name }}-synapse:8008
|
{{ include "mycloud-matrix.domain" . }}: https://{{ include "mycloud-matrix.host.server" . }}
|
||||||
login_shared_secret_map:
|
login_shared_secret_map:
|
||||||
example.com: null
|
example.com: null
|
||||||
|
{{- if not .Values.server.authenticationService.enabled }}
|
||||||
encryption:
|
encryption:
|
||||||
allow: true
|
allow: true
|
||||||
default: true
|
default: true
|
||||||
require: true
|
require: true
|
||||||
delete_keys:
|
delete_keys:
|
||||||
periodically_delete_expired: true
|
periodically_delete_expired: true
|
||||||
|
{{- end }}
|
||||||
permissions:
|
permissions:
|
||||||
"example.com": null
|
"example.com": null
|
||||||
"@admin:example.com": null
|
"@admin:example.com": null
|
||||||
"{{ $domain }}": user
|
{{ include "mycloud-matrix.domain" . | quote}}: user
|
||||||
{{- range $user := .Values.bridge.signal.admins }}
|
{{- range $user := .Values.bridge.signal.admins }}
|
||||||
{{ $user | quote }}: admin
|
{{ $user | quote }}: admin
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -79,9 +80,9 @@ spec:
|
||||||
registration:
|
registration:
|
||||||
namespaces:
|
namespaces:
|
||||||
users:
|
users:
|
||||||
- regex: {{ printf "^@signalbot:%s$" ($domain | replace "." "\\.") | quote }}
|
- regex: {{ printf "^@signalbot:%s$" (include "mycloud-matrix.domain" . | replace "." "\\.") | quote }}
|
||||||
exclusive: true
|
exclusive: true
|
||||||
- regex: {{ printf "^@signal_.*:%s$" ($domain | replace "." "\\.") | quote }}
|
- regex: {{ printf "^@signal_.*:%s$" (include "mycloud-matrix.domain" . | replace "." "\\.") | quote }}
|
||||||
exclusive: true
|
exclusive: true
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
|
|
|
@ -58,7 +58,8 @@ spec:
|
||||||
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"
|
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"
|
||||||
matrix:
|
matrix:
|
||||||
homeserver: {{ include "mycloud-matrix.domain" . }}
|
homeserver: {{ include "mycloud-matrix.domain" . }}
|
||||||
endpoint: "http://{{ .Release.Name }}-synapse:8008"
|
# endpoint: "http://{{ .Release.Name }}-synapse:8008"
|
||||||
|
endpoint: "https://{{ include "mycloud-matrix.host.server" . }}"
|
||||||
{{- with .Values.databases.authenticationService }}
|
{{- with .Values.databases.authenticationService }}
|
||||||
database:
|
database:
|
||||||
host: {{ .host | quote }}
|
host: {{ .host | quote }}
|
||||||
|
@ -84,6 +85,10 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
transport: "blackhole"
|
transport: "blackhole"
|
||||||
{{- end }}{{/* end-if $mailHostname */}}
|
{{- end }}{{/* end-if $mailHostname */}}
|
||||||
|
policy:
|
||||||
|
data:
|
||||||
|
admin_users:
|
||||||
|
{{- toYaml .Values.server.authenticationService.admins | nindent 12 }}
|
||||||
passwords:
|
passwords:
|
||||||
enabled: false
|
enabled: false
|
||||||
upstream_oauth2:
|
upstream_oauth2:
|
||||||
|
|
|
@ -69,6 +69,7 @@ spec:
|
||||||
notif_from: {{ .Values.server.mail.from | default .Values.commons.mail.from | quote }}
|
notif_from: {{ .Values.server.mail.from | default .Values.commons.mail.from | quote }}
|
||||||
{{- if .Values.server.authenticationService.enabled }}
|
{{- if .Values.server.authenticationService.enabled }}
|
||||||
experimental_features:
|
experimental_features:
|
||||||
|
msc3202_device_masquerading: true
|
||||||
msc3861:
|
msc3861:
|
||||||
enabled: true
|
enabled: true
|
||||||
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"
|
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"
|
||||||
|
|
|
@ -66,6 +66,7 @@ server:
|
||||||
enabled: false
|
enabled: false
|
||||||
authenticationService:
|
authenticationService:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
admins: []
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
# -- generated by .commons.masterPassword
|
# -- generated by .commons.masterPassword
|
||||||
|
|
Loading…
Add table
Reference in a new issue