From 3ae46f6163681c350d0c45d417d4d576360ac4f1 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Oct 2023 17:52:25 +0530 Subject: [PATCH] reconfigure dendrite --- hosts/rico1/services/dendrite.nix | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/hosts/rico1/services/dendrite.nix b/hosts/rico1/services/dendrite.nix index e61a0e5..d9c25dc 100644 --- a/hosts/rico1/services/dendrite.nix +++ b/hosts/rico1/services/dendrite.nix @@ -8,42 +8,48 @@ _: { dendrite = let database = { connection_string = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; + max_open_conns = 50; + max_idle_conns = 5; + conn_max_lifetime = -1; }; in { - enable = true; + enable = false; settings = { global = { server_name = "adtya.xyz"; private_key = "/etc/dendrite/matrix_key.pem"; + jetstream = { + addresses = "localhost:4222"; + }; inherit database; }; app_service_api = { - inherit database; + database = null; }; federation_api = { - inherit database; + database = null; }; key_server = { - inherit database; + database = null; }; media_api = { - inherit database; + database = null; }; mscs = { - inherit database; + database = null; }; relay_api = { - inherit database; + database = null; }; room_server = { - inherit database; + database = null; }; sync_api = { - inherit database; + database = null; }; user_api = { - account_database = database; - device_database = database; + account_database = null; + device_database = null; }; }; };