From 42bca6e6a458591acf5cc9599f4e8270a4640624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 28 May 2022 08:43:59 +0100 Subject: [PATCH] add sentry and async_media support --- config/services/matrix-media-repo.nix | 4 ++++ config/services/mautrix-signal.nix | 1 + config/services/mautrix-telegram.nix | 2 +- config/services/mautrix-whatsapp.nix | 1 + config/services/synapse.nix | 1 + modules/matrix/mautrix-signal.nix | 1 - 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index ed1c003f..7f6b215f 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -56,6 +56,10 @@ let asyncUploadExpirySecs = 120; }; }; + sentry = { + enable = true; + dsn = "https://18e36e6f16b5490c83364101717cddba@o253952.ingest.sentry.io/6449283"; + }; }); in { diff --git a/config/services/mautrix-signal.nix b/config/services/mautrix-signal.nix index 20830844..a27b5960 100644 --- a/config/services/mautrix-signal.nix +++ b/config/services/mautrix-signal.nix @@ -11,6 +11,7 @@ address = "https://matrix.chir.rs"; domain = "chir.rs"; http_retry_count = 1000; + async_media = true; }; appservice = { max_body_size = 10; diff --git a/config/services/mautrix-telegram.nix b/config/services/mautrix-telegram.nix index 65c8aaf7..abf5545d 100644 --- a/config/services/mautrix-telegram.nix +++ b/config/services/mautrix-telegram.nix @@ -7,7 +7,7 @@ address = "https://matrix.chir.rs"; domain = "chir.rs"; http_retry_count = 1000; - async_media = false; + async_media = true; }; appservice = { address = "http://localhost:29317"; diff --git a/config/services/mautrix-whatsapp.nix b/config/services/mautrix-whatsapp.nix index 81a39f01..bda4f3ce 100644 --- a/config/services/mautrix-whatsapp.nix +++ b/config/services/mautrix-whatsapp.nix @@ -10,6 +10,7 @@ homeserver = { address = "https://matrix.chir.rs"; domain = "chir.rs"; + async_media = true; }; appservice = { database = { diff --git a/config/services/synapse.nix b/config/services/synapse.nix index 5eb6430e..a97de0bd 100644 --- a/config/services/synapse.nix +++ b/config/services/synapse.nix @@ -59,6 +59,7 @@ msc2716_enabled = true; spaces_enabled = true; }; + sentry.dsn = "https://18e36e6f16b5490c83364101717cddba@o253952.ingest.sentry.io/6449283"; }; withJemalloc = true; }; diff --git a/modules/matrix/mautrix-signal.nix b/modules/matrix/mautrix-signal.nix index c715a554..3f09dc9f 100644 --- a/modules/matrix/mautrix-signal.nix +++ b/modules/matrix/mautrix-signal.nix @@ -106,7 +106,6 @@ in ProtectKernelTunables = true; ProtectKernelModules = true; ProtectControlGroups = true; - PrivateTmp = true; WorkingDirectory = dataDir; StateDirectory = baseNameOf dataDir; UMask = 0117;