diff --git a/hosts/rico1/services/default.nix b/hosts/rico1/services/default.nix index 87709a7..9de6442 100644 --- a/hosts/rico1/services/default.nix +++ b/hosts/rico1/services/default.nix @@ -1,6 +1,7 @@ {...}: { imports = [ ./caddy.nix + ./dendrite.nix ./frpc.nix ./nats.nix ./postgresql.nix diff --git a/hosts/rico1/services/dendrite.nix b/hosts/rico1/services/dendrite.nix new file mode 100644 index 0000000..e3cb8e8 --- /dev/null +++ b/hosts/rico1/services/dendrite.nix @@ -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"; + }; + }; + }; + }; + }; +}