Setting up deploy-rs, update & start of tetra
This commit is contained in:
parent
5532e9e720
commit
8aca74fc84
9 changed files with 258 additions and 89 deletions
|
|
@ -8,3 +8,4 @@
|
|||
- `mikau` : Jellyfin (`media.lyes.eu`)
|
||||
- `nayru` : Komga/Manga (`manga.lyes.eu`)
|
||||
- `taf` : Mail (`taf.lyes.eu`/`mail.lyes.eu`)
|
||||
- `tetra` : Torrent (`torrent.lyes.eu`)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
hostname = "auth.${config.networking.domain}";
|
||||
|
|
|
|||
46
modules/server/tetra/default.nix
Normal file
46
modules/server/tetra/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.qbittorrent = {
|
||||
enable = false;
|
||||
user = "qbittorrent";
|
||||
group = "media";
|
||||
|
||||
webuiPort = 44303;
|
||||
|
||||
serverConfig = {
|
||||
LegalNotice.Accepted = true;
|
||||
General.Locale = "fr";
|
||||
BitTorrent = {
|
||||
Session = {
|
||||
DefaultSavePath = "/var/data/media/torrent/";
|
||||
AnonymousModeEnabled=true;
|
||||
GlobalDLSpeedLimit=1250;
|
||||
GlobalUPSpeedLimit=125;
|
||||
AlternativeGlobalDLSpeedLimit=2500;
|
||||
AlternativeGlobalUPSpeedLimit=125;
|
||||
# BandwidthSchedulerEnabled=true;
|
||||
UseAlternativeGlobalSpeedLimit=false;
|
||||
QueueingSystemEnabled=true;
|
||||
MaxActiveDownloads = 7;
|
||||
MaxActiveTorrents = 7;
|
||||
MaxActiveUploads = 3;
|
||||
GlobalMaxSeedingMinutes=1440;
|
||||
};
|
||||
};
|
||||
Preferences = {
|
||||
WebUI = {
|
||||
Username = "lyes";
|
||||
Password_PBKDF2 = "@ByteArray(5UU0KdjkWdtIdml1aQVDOQ==:qs0cVTkuQzbHA3EmF9++MK9eJstbx95hIR52amh2PSSgmQxrXavu0oxUZdUMWnaIRKkUuq18o9GV+DMb7T99NA==)";
|
||||
AuthSubnetWhitelistEnabled = true;
|
||||
# AuthSubnetWhitelist = "192.168.2.2/32";
|
||||
StatusbarExternalIPDisplayed = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# users.users.qbittorrent.extraGroups = [ "media" ];
|
||||
users.users.qbittorrent.isSystemUser = true;
|
||||
users.users.qbittorrent.group = "media";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue