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

22 lines
485 B
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
'';
};
dendrite = {
enable = true;
settings = {
global = {
server_name = "adtya.xyz";
private_key = "/etc/dendrite/matrix_key.pem";
database = {
connection_string = "postgresql://dendrite@localhost/dendrite?sslmode=disable";
};
};
};
};
};
}