diff --git a/services/qbittorrent.nix b/services/qbittorrent.nix index 5240815..bdee2f3 100644 --- a/services/qbittorrent.nix +++ b/services/qbittorrent.nix @@ -61,7 +61,21 @@ }; serverConfig.BitTorrent = { + Applications = { + # Memory to allow libtorrent to use + MemoryWorkingSetLimit = 2048; # in MB + }; + Session = { + Encryption = 1; + BTProtocol = "Both"; # UTP + TCP + + DiskCacheTTL = 300; # 300s + + MaxConnections = 100; + MaxUploads = 100; + MaxUploadsPerTorrent = 20; + GlobalUPSpeedLimit = 0; # unlimited upload GlobalDLSpeedLimit = 500; # 500 KiB/s @@ -69,9 +83,14 @@ IncludeOverheadInLimits = true; - GlobalMaxRatio = 2.0; + GlobalMaxRatio = 2.000000; + ShareLimitAction = "Stop"; QueueingSystemEnabled = false; # seed all torrents all the time + # we want to maximize upload + ChokingAlgorithm = "RateBased"; + SeedChokingAlgorithm = "FastestUpload"; + AddTrackersEnabled = true; AdditionalTrackers = ( lib.concatStringsSep "\\n" [