From e65f322cfb2ab418c5a87413e247845df9a6f02a Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 3 Feb 2021 01:46:38 +0100 Subject: [PATCH] Disable Matrix federation --- modules/communication.nix | 4 ++-- modules/networking.nix | 1 - modules/webstack.nix | 1 - well-known/matrix/server | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 well-known/matrix/server diff --git a/modules/communication.nix b/modules/communication.nix index 45afb25..9fed01b 100644 --- a/modules/communication.nix +++ b/modules/communication.nix @@ -10,7 +10,7 @@ tls = false; resources = [{ compress = true; - names = [ "client" "webclient" "federation" ]; + names = [ "client" ]; }]; x_forwarded = true; }]; @@ -18,7 +18,7 @@ # Telegram bridge for Matrix services.mautrix-telegram = { - enable = false; + enable = true; environmentFile = /var/lib/mautrix-telegram/telegram.env; settings = { homeserver = { diff --git a/modules/networking.nix b/modules/networking.nix index 7cc89e5..4c077f0 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -31,7 +31,6 @@ in { 80 # HTTP 443 # HTTPS 53 # DNS - 8448 # Matrix federation ]; allowedUDPPorts = [ 1194 # Wireguard diff --git a/modules/webstack.nix b/modules/webstack.nix index 662f8f2..45f95ce 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -60,7 +60,6 @@ extraConfig = "rewrite ^/miniflux/(.*)$ https://rss.coolneng.duckdns.org/$1 last;"; }; - locations."/.well-known/".alias = "${../well-known}" + "/"; }; "radicale.coolneng.duckdns.org" = { enableACME = true; diff --git a/well-known/matrix/server b/well-known/matrix/server deleted file mode 100644 index e3f2a32..0000000 --- a/well-known/matrix/server +++ /dev/null @@ -1 +0,0 @@ -{ "m.server": "matrix.coolneng.duckdns.org:443" }