diff --git a/apps/matrix/Chart.yaml b/apps/matrix/Chart.yaml index d04256d..5512e73 100644 --- a/apps/matrix/Chart.yaml +++ b/apps/matrix/Chart.yaml @@ -1,15 +1,6 @@ apiVersion: v2 -name: matrix +name: ungleich-matrix description: ungleich managed matrix - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application # This is the chart version. This version number should be incremented each time you make changes @@ -21,4 +12,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.37.1" +appVersion: "1.38.0" diff --git a/apps/matrix/templates/deployment.yaml b/apps/matrix/templates/deployment.yaml index 632ea7f..0aa4838 100644 --- a/apps/matrix/templates/deployment.yaml +++ b/apps/matrix/templates/deployment.yaml @@ -48,7 +48,7 @@ spec: mountPath: "/var/lib/postgresql/data" subPath: postgres - name: matrix - image: matrixdotorg/synapse:v1.37.1 + image: matrixdotorg/synapse:v{{ .Values.synapseVersion }} ports: - containerPort: 8008 env: @@ -86,8 +86,6 @@ metadata: spec: type: ClusterIP ports: - - port: 22 - name: ssh # Required for letsencrypt - port: 80 name: http @@ -95,13 +93,6 @@ spec: name: https selector: use-as-service: {{ .Release.Name }} -# --- -# apiVersion: v1 -# kind: ConfigMap -# metadata: -# name: {{ tpl .Values.identifier . }}-matrixconfig -# data: -# {{ tpl (.Files.Glob "matrix/*").AsConfig . | indent 2 }} --- apiVersion: v1 kind: PersistentVolumeClaim @@ -189,7 +180,7 @@ data: ssl_certificate /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/privkey.pem; - client_max_body_size 256m; + client_max_body_size {{ .Values.max_filesize_in_mb }}m; location ~ /_matrix|/_synapse { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -234,7 +225,7 @@ data: - '127.0.0.1' resources: - - names: [federation,client,metrics] + - names: [federation,client] compress: false - port: 9093 bind_addresses: @@ -259,8 +250,8 @@ data: enable_media_repo: true media_store_path: "/data" - max_upload_size: "100M" - enable_registration: false + max_upload_size: "{{ .Values.max_filesize_in_mb }}M" + enable_registration: {{ .Values.enable_registration }} log.yaml: | version: 1 diff --git a/apps/matrix/values.yaml b/apps/matrix/values.yaml index 7f6c688..ac8c787 100644 --- a/apps/matrix/values.yaml +++ b/apps/matrix/values.yaml @@ -10,7 +10,22 @@ fqdn: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain # This needs delegation / configuration on fn.nf server_name: "fn.nf" -# Full URL -web_client_location: "https://TBD" +# Full URL -- for later, when external domains are supported +# web_client_location: "https://TBD" enable_registration: false + +# Maximum size of one particular file +max_filesize_in_mb: 100 + +elementVersion: "1.7.32" +synapseVersion: "1.38.0" + +#synapse_config: +# --- +# apiVersion: v1 +# kind: ConfigMap +# metadata: +# name: {{ tpl .Values.identifier . }}-matrixconfig +# data: +# {{ tpl (.Files.Glob "matrix/*").AsConfig . | indent 2 }}