reconfigure dendrite

This commit is contained in:
Adithya 2023-10-08 17:52:25 +05:30
parent 56151e5f52
commit 3ae46f6163
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -8,42 +8,48 @@ _: {
dendrite = let dendrite = let
database = { database = {
connection_string = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; connection_string = "postgresql://dendrite@localhost/dendrite?sslmode=disable";
max_open_conns = 50;
max_idle_conns = 5;
conn_max_lifetime = -1;
}; };
in { in {
enable = true; enable = false;
settings = { settings = {
global = { global = {
server_name = "adtya.xyz"; server_name = "adtya.xyz";
private_key = "/etc/dendrite/matrix_key.pem"; private_key = "/etc/dendrite/matrix_key.pem";
jetstream = {
addresses = "localhost:4222";
};
inherit database; inherit database;
}; };
app_service_api = { app_service_api = {
inherit database; database = null;
}; };
federation_api = { federation_api = {
inherit database; database = null;
}; };
key_server = { key_server = {
inherit database; database = null;
}; };
media_api = { media_api = {
inherit database; database = null;
}; };
mscs = { mscs = {
inherit database; database = null;
}; };
relay_api = { relay_api = {
inherit database; database = null;
}; };
room_server = { room_server = {
inherit database; database = null;
}; };
sync_api = { sync_api = {
inherit database; database = null;
}; };
user_api = { user_api = {
account_database = database; account_database = null;
device_database = database; device_database = null;
}; };
}; };
}; };