Compare commits
1 Commits
mysql-clus
...
mautrix-di
Author | SHA1 | Date | |
---|---|---|---|
a8bbc84740 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: mautrix-discord
|
name: mautrix-discord
|
||||||
version: 0.0.2
|
version: 0.1.0
|
||||||
description: Chart for Matrix Discord Bridge
|
description: Chart for Matrix Discord Bridge
|
||||||
keywords:
|
keywords:
|
||||||
- matrix
|
- matrix
|
||||||
|
@@ -8,34 +8,3 @@ Helper for secret name
|
|||||||
{{- printf "mautrix-discord-config-secret" | trunc 63 | trimSuffix "-" }}
|
{{- printf "mautrix-discord-config-secret" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Helper for registration secret name
|
|
||||||
*/}}
|
|
||||||
{{- define "mautrix-discord.registrationSecretName" -}}
|
|
||||||
{{- if .Values.mautrixDiscord.existingRegistrationSecret }}
|
|
||||||
{{- printf "%s" .Values.mautrixDiscord.existingRegistrationSecret -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "mautrix-discord-registration-secret" }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Generate registration.yaml if not from existing secret
|
|
||||||
*/}}
|
|
||||||
{{- define "mautrix-discord.registration-yaml" -}}
|
|
||||||
id: {{ .Values.mautrixDiscord.config.appservice.id | quote }}
|
|
||||||
as_token: {{ .Values.mautrixDiscord.config.appservice.as_token | quote }}
|
|
||||||
hs_token: {{ .Values.mautrixDiscord.config.appservice.hs_token | quote }}
|
|
||||||
namespaces:
|
|
||||||
users:
|
|
||||||
- regex: {{ printf "^@discordbot:%s$" (replace "." "\\." .Values.mautrixDiscord.config.homeserver.domain) }}
|
|
||||||
exclusive: true
|
|
||||||
- regex: {{ printf "^@%s:%s$" (replace "{{.}}" ".*" (tpl .Values.mautrixDiscord.config.bridge.username_template .)) (replace "." "\\." .Values.mautrixDiscord.config.homeserver.domain) }}
|
|
||||||
exclusive: true
|
|
||||||
url: {{ .Values.mautrixDiscord.config.appservice.address | quote }}
|
|
||||||
sender_localpart: {{ .Values.mautrixDiscord.registration.sender_localpart | quote }}
|
|
||||||
rate_limited: {{ .Values.mautrixDiscord.registration.rate_limited }}
|
|
||||||
de.sorunome.msc2409.push_ephemeral: true
|
|
||||||
push_ephemeral: true
|
|
||||||
{{- end -}}
|
|
||||||
|
@@ -62,19 +62,12 @@ spec:
|
|||||||
mountPath: /data/config.yaml
|
mountPath: /data/config.yaml
|
||||||
subPath: config.yaml
|
subPath: config.yaml
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: registration
|
|
||||||
mountPath: /data/registration.yaml
|
|
||||||
subPath: registration.yaml
|
|
||||||
readOnly: true
|
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ template "mautrix-discord.secretName" . }}
|
secretName: {{ template "mautrix-discord.secretName" . }}
|
||||||
- name: registration
|
|
||||||
secret:
|
|
||||||
secretName: {{ template "mautrix-discord.registrationSecretName" . }}
|
|
||||||
- name: data
|
- name: data
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@@ -419,9 +419,3 @@ mautrixDiscord:
|
|||||||
max_size: 100
|
max_size: 100
|
||||||
max_backups: 10
|
max_backups: 10
|
||||||
compress: true
|
compress: true
|
||||||
|
|
||||||
# registration.yml contents
|
|
||||||
existingRegistrationSecret: ""
|
|
||||||
registration:
|
|
||||||
rate_limited: false
|
|
||||||
sender_localpart: discordbridgebot
|
|
||||||
|
Reference in New Issue
Block a user