2024-09-14 19:36:59 +05:30
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
|
|
|
in
|
|
|
|
{
|
2024-07-17 10:45:56 +05:30
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts."transmission.labs.adtya.xyz" = {
|
2024-09-14 19:36:59 +05:30
|
|
|
logFormat = logFormat "transmission.labs.adtya.xyz";
|
2024-07-17 10:45:56 +05:30
|
|
|
extraConfig = ''
|
2024-07-17 11:05:14 +05:30
|
|
|
reverse_proxy 127.0.0.1:9091
|
2024-07-17 10:45:56 +05:30
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
transmission = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.transmission_4;
|
|
|
|
downloadDirPermissions = "775";
|
|
|
|
home = "/mnt/data/Torrents";
|
|
|
|
webHome = pkgs.flood-for-transmission;
|
|
|
|
openPeerPorts = true;
|
|
|
|
extraFlags = [
|
|
|
|
"--encryption-required"
|
|
|
|
"--no-portmap"
|
|
|
|
"--dht"
|
|
|
|
"--lpd"
|
|
|
|
];
|
|
|
|
settings = {
|
|
|
|
peer-port = 51515;
|
2024-07-17 11:05:14 +05:30
|
|
|
rpc-bind-address = "127.0.0.1";
|
2024-07-17 10:45:56 +05:30
|
|
|
rpc-port = 9091;
|
2024-07-17 11:05:14 +05:30
|
|
|
rpc-host-whitelist = "transmission.labs.adtya.xyz";
|
2024-07-17 10:45:56 +05:30
|
|
|
watch-dir-enabled = true;
|
|
|
|
};
|
2024-07-04 01:13:49 +05:30
|
|
|
};
|
|
|
|
};
|
2024-07-05 00:16:21 +05:30
|
|
|
systemd.services.transmission.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
2024-07-04 01:13:49 +05:30
|
|
|
}
|