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

52 lines
1.1 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";
};
in {
2023-08-20 19:43:12 +05:30
enable = true;
settings = {
global = {
server_name = "adtya.xyz";
private_key = "/etc/dendrite/matrix_key.pem";
2023-10-02 17:17:24 +05:30
inherit database;
};
app_service_api = {
inherit database;
};
federation_api = {
inherit database;
};
key_server = {
inherit database;
};
media_api = {
inherit database;
};
mscs = {
inherit database;
};
relay_api = {
inherit database;
};
room_server = {
inherit database;
};
sync_api = {
inherit database;
};
user_api = {
account_database = database;
device_database = database;
2023-08-20 19:43:12 +05:30
};
};
};
};
}