|
|
@@ -24,7 +24,16 @@ spec:
|
|
|
ports:
|
|
|
- name: web
|
|
|
containerPort: 8008
|
|
|
-
|
|
|
+ volumeMounts:
|
|
|
+ - name: "matrix-homeserver.yaml"
|
|
|
+ mountPath: "/data/homeserver.yaml"
|
|
|
+ subPath: "matrix-homeserver.yaml"
|
|
|
+ readOnly: true
|
|
|
+ volumes:
|
|
|
+ - name: "matrix-homeserver.yaml"
|
|
|
+ configMap:
|
|
|
+ name: "matrix-homesever.yaml"
|
|
|
+
|
|
|
---
|
|
|
apiVersion: v1
|
|
|
kind: Service
|
|
|
@@ -37,6 +46,7 @@ spec:
|
|
|
port: 8008
|
|
|
selector:
|
|
|
app: matrix
|
|
|
+
|
|
|
---
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
kind: IngressRoute
|
|
|
@@ -70,3 +80,55 @@ spec:
|
|
|
port: 8008
|
|
|
tls:
|
|
|
certResolver: myresolver
|
|
|
+
|
|
|
+---
|
|
|
+apiVersion: v1
|
|
|
+kind: ConfigMap
|
|
|
+metadata:
|
|
|
+ name: matrix-homeserver.yaml
|
|
|
+ namespace: default
|
|
|
+data:
|
|
|
+ matrix-homeserver.yaml: |
|
|
|
+ # This file is maintained as an up-to-date snapshot of the default
|
|
|
+ # homeserver.yaml configuration generated by Synapse. You can find a
|
|
|
+ # complete accounting of possible configuration options at
|
|
|
+ # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
|
|
|
+ #
|
|
|
+ # It is *not* intended to be copied and used as the basis for a real
|
|
|
+ # homeserver.yaml. Instead, if you are starting from scratch, please generate
|
|
|
+ # a fresh config using Synapse by following the instructions in
|
|
|
+ # https://matrix-org.github.io/synapse/latest/setup/installation.html.
|
|
|
+ #
|
|
|
+ ################################################################################
|
|
|
+
|
|
|
+ # Configuration file for Synapse.
|
|
|
+ #
|
|
|
+ # This is a YAML file: see [1] for a quick introduction. Note in particular
|
|
|
+ # that *indentation is important*: all the elements of a list or dictionary
|
|
|
+ # should have the same indentation.
|
|
|
+ #
|
|
|
+ # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
|
|
|
+ #
|
|
|
+ # For more information on how to configure Synapse, including a complete accounting of
|
|
|
+ # each option, go to docs/usage/configuration/config_documentation.md or
|
|
|
+ # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
|
|
|
+ server_name: "MATRIX.DEZENDORF.NET"
|
|
|
+ pid_file: DATADIR/homeserver.pid
|
|
|
+ listeners:
|
|
|
+ - port: 8008
|
|
|
+ tls: false
|
|
|
+ type: http
|
|
|
+ x_forwarded: true
|
|
|
+ bind_addresses: ['::1', '127.0.0.1']
|
|
|
+ resources:
|
|
|
+ - names: [client, federation]
|
|
|
+ compress: false
|
|
|
+ database:
|
|
|
+ name: sqlite3
|
|
|
+ args:
|
|
|
+ database: DATADIR/homeserver.db
|
|
|
+ log_config: "CONFDIR/SERVERNAME.log.config"
|
|
|
+ media_store_path: DATADIR/media_store
|
|
|
+ signing_key_path: "CONFDIR/SERVERNAME.signing.key"
|
|
|
+ trusted_key_servers:
|
|
|
+ - server_name: "matrix.dezendorf.net"
|