From 62e66e4966b543dde1103ca2bcb0df1afa075fdb Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 3 Feb 2021 18:38:41 +0100 Subject: [PATCH] Set up Mautrix-Telegram bridge --- modules/communication.nix | 14 +++++--------- modules/networking.nix | 1 + 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/communication.nix b/modules/communication.nix index 9fed01b..9255325 100644 --- a/modules/communication.nix +++ b/modules/communication.nix @@ -14,6 +14,8 @@ }]; x_forwarded = true; }]; + app_service_config_files = + [ "/var/lib/matrix-synapse/telegram-registration.yaml" ]; }; # Telegram bridge for Matrix @@ -26,17 +28,11 @@ domain = "coolneng.duckdns.org"; }; appservice = { - provisioning.enabled = false; - id = "telegram"; - public = { - enabled = true; - prefix = "/public"; - external = "https://matrix.coolneng.duckdns.org/public"; - }; + address = "http://localhost:8118"; + port = 8118; }; bridge = { - relaybot.authless_portals = false; - permissions = { "@admin:matrix.coolneng.duckdns.org" = "admin"; }; + permissions = { "@coolneng:coolneng.duckdns.org" = "admin"; }; }; }; serviceDependencies = [ "matrix-synapse.service" ]; diff --git a/modules/networking.nix b/modules/networking.nix index 02bed19..72ef662 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -31,6 +31,7 @@ in { 80 # HTTP 443 # HTTPS 53 # DNS + 8448 # Matrix ]; allowedUDPPorts = [ 1194 # Wireguard