enable dendrite
This commit is contained in:
parent
afefe46b33
commit
073f40db8a
2 changed files with 22 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./caddy.nix
|
||||
./dendrite.nix
|
||||
./frpc.nix
|
||||
./nats.nix
|
||||
./postgresql.nix
|
||||
|
|
21
hosts/rico1/services/dendrite.nix
Normal file
21
hosts/rico1/services/dendrite.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue