update dendrite config

This commit is contained in:
Adithya 2023-10-29 23:38:56 +05:30
parent 28c0868f7d
commit 830f5a5ef3
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -12,10 +12,17 @@
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
DynamicUser = true;
StateDirectory = "dendrite";
WorkingDirectory = "/var/lib/dendrite";
RuntimeDirectory = "dendrite";
RuntimeDirectoryMode = "0700";
LimitNOFILE = 65535; LimitNOFILE = 65535;
ExecStart = '' ExecStart = ''
${pkgs.dendrite}/bin/dendrite -http-bind-address 127.0.0.1:8008 -https-bind-address 127.0.0.1:8448 -config ${./config.yaml} ${pkgs.dendrite}/bin/dendrite -http-bind-address 127.0.0.1:8008 -https-bind-address 127.0.0.1:8448 -config ${./config.yaml}
''; '';
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Restart = "on-failure";
}; };
}; };
} }