Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 66 lines (50 sloc) 2.61 KB
### rtorrent settings #######################################################
# vim: ft=dosini
# This is the standard configuration that supports both PyroScope and
# (optionally) rTorrent-PS features.
#
# It is installed by Ansible, but only gets overwritten when you provide the
# option "-e force_cfg=yes" to the "ansible-playbook" command, after the
# initial playbook run.
#
# For more info regarding changing configuration defaults, see the docs:
#
# https://pimp-my-box.readthedocs.io/en/latest/setup.html#change-cfg-defaults
#
#############################################################################
# Root directory of this instance (RT_HOME is set in the "start" script).
# With vanilla rTorrent, must be changed to something like…
# … string, (cat,"/var/torrent/")
method.insert = cfg.basedir, private|const|string, (cat,(system.env,"RT_HOME"),"/")
# `system.has` polyfill (the "false=" silences the `catch` command, in rTorrent-PS 1.1+)
catch = {"false=", "method.redirect=system.has,false"}
# Set "pyro.extended" to 1 to activate rTorrent-PS features!
method.insert = pyro.extended, const|value, (system.has, rtorrent-ps)
# Set "pyro.bin_dir" to the "bin" directory where you installed the pyrocore tools!
# Make sure you end it with a "/"; if this is left empty, then the shell's path is searched.
method.insert = pyro.bin_dir, const|string, ~/bin/
# Set this to '0' to prevent logging of existing key bindings being replaced
## branch=(pyro.extended), ((ui.bind_key.verbose.set, 0))
# Since "network.scgi.open_local" is parsed by "rtcontrol", this must be a literal value,
# and also not moved out of the main configuration file!
network.scgi.open_local = /var/torrent/.scgi_local
# SCHEDULE: Make SCGI socket group-writable and secure
schedule2 = scgi_permission, 0, 0, "execute.nothrow=chmod,\"g+w,o=\",/var/torrent/.scgi_local"
#
# Import settings from "~/rtorrent/rtorrent.d"
#
# Prefer to put your own custom settings into additional files in
# that directory, or else "_rtlocal.rc" (see below)!
#
# Uncomment the following line for debugging purposes only
#log.execute = (cat, /tmp/rtorrent-bootstrap-, (system.pid), .log)
execute.throw = (cat,(pyro.bin_dir),pyroadmin),-q,--create-import,(cat,(cfg.basedir),"rtorrent.d/*.rc")
import = (cat,(cfg.basedir),"rtorrent.d/.import.rc")
#
# Include custom / optional settings
#
# INCLUDE: Local settings (optional)
try_import = (cat,(cfg.basedir),"_rtlocal.rc")
# INCLUDE: ruTorrent (optional)
try_import = (cat,(cfg.basedir),"_rutorrent.rc")
### END rtorrent.rc #########################################################