enable dendrite

This commit is contained in:
Adithya 2023-08-20 19:43:12 +05:30
parent afefe46b33
commit 073f40db8a
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 22 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{...}: {
imports = [
./caddy.nix
./dendrite.nix
./frpc.nix
./nats.nix
./postgresql.nix

View file

@ -0,0 +1,21 @@
_: {
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";
};
};
};
};
};
}