configuration.nix/hosts/rico1/services/dendrite.nix

58 lines
1.2 KiB
Nix
Raw Normal View History

2023-08-20 19:43:12 +05:30
_: {
services = {
caddy.virtualHosts."matrix.adtya.xyz" = {
extraConfig = ''
reverse_proxy /_matrix/* 127.0.0.1:8008
'';
};
2023-10-02 17:17:24 +05:30
dendrite = let
database = {
connection_string = "postgresql://dendrite@localhost/dendrite?sslmode=disable";
2023-10-08 17:52:25 +05:30
max_open_conns = 50;
max_idle_conns = 5;
conn_max_lifetime = -1;
2023-10-02 17:17:24 +05:30
};
in {
2023-10-08 17:52:25 +05:30
enable = false;
2023-08-20 19:43:12 +05:30
settings = {
global = {
server_name = "adtya.xyz";
private_key = "/etc/dendrite/matrix_key.pem";
2023-10-08 17:52:25 +05:30
jetstream = {
addresses = "localhost:4222";
};
2023-10-02 17:17:24 +05:30
inherit database;
};
app_service_api = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
federation_api = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
key_server = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
media_api = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
mscs = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
relay_api = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
room_server = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
sync_api = {
2023-10-08 17:52:25 +05:30
database = null;
2023-10-02 17:17:24 +05:30
};
user_api = {
2023-10-08 17:52:25 +05:30
account_database = null;
device_database = null;
2023-08-20 19:43:12 +05:30
};
};
};
};
}