.rtorrent.rc
directory = /media/Lion/lion/torrents
session = /home/guepard/.session
schedule = low_diskspace,5,60,close_low_diskspace=100M
send_buffer_size = 1048576
receive_buffer_size = 1048576
max_memory_usage = 1073741824
check_hash = no
port_range = 51515-61234
port_random = no
use_udp_trackers = no
encryption = allow_incoming,try_outgoing
dht = off
peer_exchange = no
#The Following Are VERY Important
encoding_list = UTF-8
scgi_local = /tmp/guepard.socket
schedule = chmod,0,0,"execute=chmod,777,/tmp/guepard.socket"
conf user guepard
<?php
// configuration parameters
// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 5, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);
// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);
$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true; // Save uploaded torrents into profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents into profile/torrents directory or make unique name
$topDirectory = '/media/Lion'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///tmp/guepard.socket";
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/guepard"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);
$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);
$profilePath = '../share'; // Path to users profiles
$profileMask = 0777; // Mask for files and directory creation in users profiles.
// Both web-server and rtorrent users must have read-write access to its.
// For example, if web-server and rtorrent users are in some group then value may be 0770
?>
lighttpd conf
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl"
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
## bind to port (default: 80)
server.port = 81
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
$SERVER["socket"] == ":81" {
$HTTP["host"] =~ "(.*)" {
url.redirect = ( "^/(.*)" => "http://%1/$1" )
}
}
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
}
server.modules += ( "mod_auth" )
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/.auth"
auth.debug = 2
auth.require = ( "/rutorrent/" =>
(
"method" => "digest",
"realm" => "ruTorrent Seedbox",
"require" => "valid-user"
)
)
server.modules += ( "mod_scgi" )
scgi.server = (
"/tigre" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/tigre.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/leopard" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/leopard.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/jaguar" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/jaguar.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/puma" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/puma.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/cougar" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/cougar.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/guepard" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/guepard.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
)
)