Merge pull request #283981 from f2k1de/mastodon-too-many-open-files-fix

mastodon: set LimitNOFILE
This commit is contained in:
Kerstin 2024-01-28 18:47:53 +01:00 committed by GitHub
commit 45b1d68c35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,6 +133,7 @@ let
RestartSec = 20;
EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ] ++ cfg.extraEnvFiles;
WorkingDirectory = cfg.package;
LimitNOFILE = "1024000";
# System Call Filtering
SystemCallFilter = [ ("~" + lib.concatStringsSep " " systemCallsList) "@chown" "pipe" "pipe2" ];
} // cfgService;