From d24585dab1e412635cb27ed8141651d433236750 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 24 Mar 2022 15:43:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20update=20matrix=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/matrix/default.nix | 48 +++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index 9d4092b..0f5b268 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -16,34 +16,40 @@ matrix-synapse = { enable = true; - server_name = "walkah.chat"; - public_baseurl = "https://matrix.walkah.chat"; - enable_metrics = true; - enable_registration = false; - database_type = "psycopg2"; - database_args = { database = "matrix"; }; - listeners = [{ - port = 8008; - type = "http"; - tls = false; - x_forwarded = true; - resources = [{ - compress = false; - names = [ "client" "federation" ]; + settings = { + server_name = "walkah.chat"; + public_baseurl = "https://matrix.walkah.chat"; + enable_metrics = true; + enable_registration = false; + database = { + name = "psycopg2"; + args = { database = "matrix"; }; + }; + account_threepid_delegates = { + email = "https://vector.im"; + msisdn = "https://vector.im"; + }; + listeners = [{ + bind_addresses = [ + "0.0.0.0" + ]; + port = 8008; + type = "http"; + tls = false; + x_forwarded = true; + resources = [{ + compress = false; + names = [ "client" "federation" ]; + }]; }]; - }]; + }; extraConfigFiles = [ config.sops.secrets.matrix-registration-secret.path ]; - - account_threepid_delegates = { - email = "https://vector.im"; - msisdn = "https://vector.im"; - }; }; }; - sops.secrets.matrix-registration-secret = { + sops.secrets.matrix-registration-secret = { owner = "matrix-synapse"; }; }