Skip to content

Magnetico

services.magnetico.crawler.address

Address to be used for indexing DHT nodes.

Type: string

Default

"0.0.0.0"

Example

"1.2.3.4"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.crawler.extraOptions

Extra command line arguments to pass to magneticod.

Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.crawler.maxLeeches

Maximum number of simultaneous leeches.

Type: positive integer, meaning >0

Default

200

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.crawler.maxNeighbors

Maximum number of simultaneous neighbors of an indexer. Be careful changing this number: high values can very easily cause your network to be congested or even crash your router.

Type: positive integer, meaning >0

Default

1000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.crawler.port

Port to be used for indexing DHT nodes. This port should be added to {option}networking.firewall.allowedTCPPorts.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

0

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.enable

Whether to enable Magnetico, Bittorrent DHT crawler. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.web.address

Address the web interface will listen to.

Type: string

Default

"localhost"

Example

"1.2.3.4"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.web.credentials

The credentials to access the web interface, in case authentication is enabled, in the format username:hash. If unset no authentication will be required.

Usernames must start with a lowercase ([a-z]) ASCII character, might contain non-consecutive underscores except at the end, and consists of small-case a-z characters and digits 0-9. Thehtpasswd tool from the apacheHttpd package may be used to generate the hash: {command}htpasswd -bnBC 12 username password

::: {.warning} The hashes will be stored world-readable in the nix store. Consider using the credentialsFile option if you don't want this. :::

Type: attribute set of string

Default

{ }

Example

{myuser = "$2y$12$YE01LZ8jrbQbx6c0s2hdZO71dSjn2p/O9XsYJpz.5968yCysUgiaG";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.web.credentialsFile

The path to the file holding the credentials to access the web interface. If unset no authentication will be required.

The file must contain user names and password hashes in the format username:hash, one for each line. Usernames must start with a lowecase ([a-z]) ASCII character, might contain non-consecutive underscores except at the end, and consists of small-case a-z characters and digits 0-9. The {command}htpasswd tool from the apacheHttpd package may be used to generate the hash: {command}htpasswd -bnBC 12 username password

Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.web.extraOptions

Extra command line arguments to pass to magneticow.

Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix

services.magnetico.web.port

Port the web interface will listen to.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

8080

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/torrent/magnetico.nix