ma torrent: log rpc events, cleanup
This commit is contained in:
parent
9fb3228537
commit
60087eedb9
@ -1,6 +1,5 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with import <stockholm/lib>;
|
|
||||||
let
|
let
|
||||||
in {
|
in {
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 514 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 514 ];
|
||||||
|
@ -35,7 +35,9 @@ in {
|
|||||||
rtorrent.members = [ "download" ];
|
rtorrent.members = [ "download" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
krebs.rtorrent = {
|
krebs.rtorrent = let
|
||||||
|
d = config.makefu.dl-dir;
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
web = {
|
web = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -45,7 +47,17 @@ in {
|
|||||||
rutorrent.enable = true;
|
rutorrent.enable = true;
|
||||||
enableXMLRPC = true;
|
enableXMLRPC = true;
|
||||||
listenPort = peer-port;
|
listenPort = peer-port;
|
||||||
downloadDir = config.makefu.dl-dir;
|
downloadDir = d + "/finished/incoming";
|
||||||
|
watchDir = d + "/watch";
|
||||||
|
# TODO: maybe test out multiple watch dirs with tags: https://github.com/rakshasa/rtorrent/wiki/TORRENT-Watch-directories
|
||||||
|
extraConfig = ''
|
||||||
|
# log.add_output = "debug", "rtorrent-systemd"
|
||||||
|
# log.add_output = "dht_debug", "rtorrent-systemd"
|
||||||
|
# log.add_output = "tracker_debug", "rtorrent-systemd"
|
||||||
|
log.add_output = "rpc_events", "rtorrent-systemd"
|
||||||
|
log.add_output = "rpc_dump", "rtorrent-systemd"
|
||||||
|
system.daemon.set = true
|
||||||
|
'';
|
||||||
# dump old torrents into watch folder to have them re-added
|
# dump old torrents into watch folder to have them re-added
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
docker
|
docker
|
||||||
docker_compose
|
docker_compose
|
||||||
];
|
];
|
||||||
users.extraUsers.${config.krebs.build.user.name}.extraGroups = [ "docker" ];
|
users.users.${config.krebs.build.user.name}.extraGroups = [ "docker" ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user