modules: services: indexers: limit Jackett memory

This commit is contained in:
Bruno BELANYI 2021-06-15 18:17:37 +02:00
parent b7301b54c0
commit 9bb09ee8f4

View file

@ -21,6 +21,15 @@ in
enable = true;
};
# Jackett wants to eat *all* my RAM if left to its own devices
systemd.services.jackett = {
serviceConfig = {
MemoryHigh = "15%";
MemoryMax = "25%";
};
};
services.nginx.virtualHosts."${jackettDomain}" =
lib.mkIf cfg.jackett.enable {
forceSSL = true;