diff --git a/matrix-synapse/Chart.yaml b/matrix-synapse/Chart.yaml index 0db3eb5..57b1229 100644 --- a/matrix-synapse/Chart.yaml +++ b/matrix-synapse/Chart.yaml @@ -4,7 +4,7 @@ name: matrix-synapse description: Matrix reference homeserver icon: https://matrix.org/images/matrix-logo.svg type: application -version: 0.2.7 +version: 0.2.8 # renovate: image=ghcr.io/element-hq/synapse appVersion: 1.101.0 maintainers: diff --git a/matrix-synapse/README.adoc b/matrix-synapse/README.adoc index 9ab91f7..760e03f 100644 --- a/matrix-synapse/README.adoc +++ b/matrix-synapse/README.adoc @@ -2,7 +2,7 @@ = matrix-synapse -image::https://img.shields.io/badge/Version-0.2.7-informational?style=flat-square[Version: 0.2.7] +image::https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square[Version: 0.2.8] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/AppVersion-1.101.0-informational?style=flat-square[AppVersion: 1.101.0] == Maintainers diff --git a/matrix-synapse/files/well-known/nginx.conf b/matrix-synapse/files/well-known/nginx.conf new file mode 100644 index 0000000..c31b073 --- /dev/null +++ b/matrix-synapse/files/well-known/nginx.conf @@ -0,0 +1,15 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + + location / { + add_header Access-Control-Allow-Origin "*"; + root /usr/share/nginx/html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} diff --git a/matrix-synapse/templates/wellknown/configmap.yaml b/matrix-synapse/templates/wellknown/configmap.yaml index b977b5a..a8d1e76 100644 --- a/matrix-synapse/templates/wellknown/configmap.yaml +++ b/matrix-synapse/templates/wellknown/configmap.yaml @@ -20,4 +20,5 @@ data: {{- else }} {{- dict "m.homeserver" (dict "base_url" (printf "https://%s/" (.Values.publicServerName | default .Values.serverName))) | toJson | nindent 4 }} {{- end }} + {{- (.Files.Glob "files/well-known/*" ).AsConfig | nindent 2 }} {{- end -}}{{/* end-if .wellknown.enabled */}} diff --git a/matrix-synapse/templates/wellknown/deployment.yaml b/matrix-synapse/templates/wellknown/deployment.yaml index e4f62d2..7c3dc27 100644 --- a/matrix-synapse/templates/wellknown/deployment.yaml +++ b/matrix-synapse/templates/wellknown/deployment.yaml @@ -55,7 +55,14 @@ spec: {{- toYaml .Values.wellknown.resources | nindent 12 }} volumeMounts: - name: "data" - mountPath: "/usr/share/nginx/html/.well-known/matrix/" + mountPath: "/usr/share/nginx/html/.well-known/matrix/client" + subPath: "client" + - name: "data" + mountPath: "/usr/share/nginx/html/.well-known/matrix/server" + subPath: "server" + - name: "data" + mountPath: "/etc/nginx/conf.d/default.conf" + subPath: "nginx.conf" {{- with .Values.wellknown.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}