Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (80 sloc) 3.848 kB
%% -*- mode: Erlang; -*-
[{etorrent_core,
[
%% The port entry tells etorrent which port it should listen on. It
%% can currently not be limited to listen on certain interfaces
%% only. It will instead bind to every available interface present.
{port, 1729 },
%% The port to listen on when retrieving UDP responses from the tracker
{udp_port, 1730 },
%% The dht entry enables the DHT subsystem, it is used to
%% retrieve information of which peers are available if there
%% are no trackers available.
{dht, true },
%% The DHT subsystem will also bind to all interfaces.
{dht_port, 6882 },
%% The DHT subsystem stores its internal state between runs in a state file
%% The following setting defines the location of this file
{dht_state, "/home/user/etorrent/spool/dht_state.dets"},
%% Enable UPnP subsystem, which tries to open port mappings in
%% UPnP-aware routers for etorrent.
{use_upnp, true },
%% The directory to watch for .torrent files and the directory to download data into
{dir, "/home/user/etorrent/torrent_data"},
%% The directory to download data into. It is optional, if not defined used 'dir' value.
{download_dir, "/home/user/etorrent/torrent_data"},
%% Interval in seconds to check directory for new .torrent files
{dirwatch_interval, 20 },
%% Location of the log file
{logger_dir, "log"},
%% Name of the log file. Etorrent will stamp out simple messages here whenever progress
%% is made in the system.
{logger_fname, "etorrent.log"},
%% Location of the fast resume file. If present this file is used to populate the fast-
%% resume table, so startup is much faster. Every 5 minutes the file is stamped out,
%% so an eventual death of the system won't affect too much. It is also written upon
%% graceful termination.
%% NOTE: The directory for the fast resume file must exist, or etorrent will crash.
{fast_resume_file, "/home/user/etorrent/spool/fast_resume_state.dets"},
%% Limit on the number of peers the system can maximally be connected to
{max_peers, 200},
%% The download rate of the system.
{max_download_rate, 1200 },
%% The upload rate of the system.
{max_upload_rate, 1200 },
%% Number of upload slots. Either an integer or 'auto'. We recommend 'auto' as this
%% will calculate a sane number of upload slots from the upload_rate. If this is set
%% too low, you will not saturate the outbound bandwidth. If set too high, peers will
%% not like the client as it can only give bad rates to all peers.
{max_upload_slots, auto},
%% High and low watermarks for the file system processes. Etorrent will not open more
%% on-disk files than the limit given here.
{fs_watermark_high, 128},
{fs_watermark_low, 100},
%% Number of optimistic upload slots. If your line is really fast, consider increasing
%% this a little bit.
{min_uploads, 2},
%% The preallocation strategy to use when creating new files. The default is "sparse"
%% which creates a sparse file on the disk. Some file systems are bad at working with
%% sparse files, most notably FreeBSDs default file system. The other option here is
%% "preallocate" which means the system will fill the file up on disk before using it.
{preallocation_strategy, sparse },
%% Enable profiling; do not enable unless you need it
{profiling, false}
]},
{lager,
[{handlers,
[{lager_console_backend, [debug, true]},
{lager_file_backend,
[{"log/error.log", error, 10485760, "$D0", 5},
{"log/console.log", info, 10485760, "$D0", 5},
{"log/debug.log", debug, 10485760, "$D0", 5}
]}
]}
]},
{kernel,
[{start_timer, true}]},
{sasl,
[{sasl_error_logger, {file, "log/sasl/sasl-error.log"}},
{errlog_type, error}]}
].
Jump to Line
Something went wrong with that request. Please try again.