From 770d428bdf4ecddc0f67efeddf8d4cf522a30361 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 21 Mar 2022 16:24:28 +0100 Subject: [PATCH] Adapt matrix-synapse to upstream changes --- modules/communication.nix | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/modules/communication.nix b/modules/communication.nix index 2af6c6d..e4cb5ab 100644 --- a/modules/communication.nix +++ b/modules/communication.nix @@ -4,18 +4,21 @@ # Matrix server configuration services.matrix-synapse = { enable = true; - server_name = "coolneng.duckdns.org"; - public_baseurl = "https://matrix.coolneng.duckdns.org"; - listeners = [{ - port = 8008; - tls = false; - resources = [{ - compress = true; - names = [ "client" ]; + settings = { + server_name = "coolneng.duckdns.org"; + public_baseurl = "https://matrix.coolneng.duckdns.org"; + listeners = [{ + port = 8008; + tls = false; + resources = [{ + compress = true; + names = [ "client" ]; + }]; + bind_addresses = [ "127.0.0.1" ]; }]; - }]; - app_service_config_files = - [ "/var/lib/matrix-synapse/telegram-registration.yaml" ]; + app_service_config_files = + [ "/var/lib/matrix-synapse/telegram-registration.yaml" ]; + }; }; # Telegram bridge for Matrix