configuration.nix/hosts/rico1/services/dendrite/default.nix
2023-10-29 23:26:49 +05:30

21 lines
568 B
Nix

{pkgs, ...}: {
services = {
caddy.virtualHosts."matrix.adtya.xyz" = {
extraConfig = ''
reverse_proxy /_matrix/* 127.0.0.1:8008
'';
};
};
systemd.services.dendrite = {
description = "Dendrite Matrix homeserver";
after = ["network.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
Type = "simple";
LimitNOFILE = 65535;
ExecStart = ''
${pkgs.dendrite}/bin/dendrite -http-bind-address 127.0.0.1:8008 -https-bind-address 127.0.0.1:8448 -config ${./config.yaml}
'';
};
};
}