fix(mycloud-matrix): some tweaks

This commit is contained in:
WrenIX 2024-03-13 22:58:36 +01:00
parent 41c880d22a
commit fabb9118c6
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 17 additions and 9 deletions

View file

@ -1,5 +1,4 @@
{{- if .Values.bridge.signal.enabled }}
{{- $domain := .Values.server.host | default .Values.commons.ingress.domain }}
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
@ -37,12 +36,12 @@ spec:
- kind: Secret
name: "{{ .Release.Name }}-doublepuppet"
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:
config:
homeserver:
address: http://{{ .Release.Name }}-synapse:8008
domain: {{ $domain }}
address: https://{{ include "mycloud-matrix.host.server" . }}
domain: {{ include "mycloud-matrix.domain" . }}
appservice:
address: http://{{ .Release.Name }}-mautrix-signal:29328
database:
@ -57,19 +56,21 @@ spec:
sync_direct_chat_list: true
double_puppet_server_map:
example.com: null
{{ $domain }}: http://{{ .Release.Name }}-synapse:8008
{{ include "mycloud-matrix.domain" . }}: https://{{ include "mycloud-matrix.host.server" . }}
login_shared_secret_map:
example.com: null
{{- if not .Values.server.authenticationService.enabled }}
encryption:
allow: true
default: true
require: true
delete_keys:
periodically_delete_expired: true
{{- end }}
permissions:
"example.com": null
"@admin:example.com": null
"{{ $domain }}": user
{{ include "mycloud-matrix.domain" . | quote}}: user
{{- range $user := .Values.bridge.signal.admins }}
{{ $user | quote }}: admin
{{- end }}
@ -79,9 +80,9 @@ spec:
registration:
namespaces:
users:
- regex: {{ printf "^@signalbot:%s$" ($domain | replace "." "\\.") | quote }}
- regex: {{ printf "^@signalbot:%s$" (include "mycloud-matrix.domain" . | replace "." "\\.") | quote }}
exclusive: true
- regex: {{ printf "^@signal_.*:%s$" ($domain | replace "." "\\.") | quote }}
- regex: {{ printf "^@signal_.*:%s$" (include "mycloud-matrix.domain" . | replace "." "\\.") | quote }}
exclusive: true
persistence:

View file

@ -58,7 +58,8 @@ spec:
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"
matrix:
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 }}
database:
host: {{ .host | quote }}
@ -84,6 +85,10 @@ spec:
{{- else }}
transport: "blackhole"
{{- end }}{{/* end-if $mailHostname */}}
policy:
data:
admin_users:
{{- toYaml .Values.server.authenticationService.admins | nindent 12 }}
passwords:
enabled: false
upstream_oauth2:

View file

@ -69,6 +69,7 @@ spec:
notif_from: {{ .Values.server.mail.from | default .Values.commons.mail.from | quote }}
{{- if .Values.server.authenticationService.enabled }}
experimental_features:
msc3202_device_masquerading: true
msc3861:
enabled: true
issuer: "https://{{ include "mycloud-matrix.host.authenticationService" . }}/"

View file

@ -66,6 +66,7 @@ server:
enabled: false
authenticationService:
enabled: false
admins: []
auth:
# -- generated by .commons.masterPassword