54 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
<?php
 | 
						|
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
 | 
						|
@define('HTTP_TIME_OUT', 30, true); // in seconds
 | 
						|
@define('HTTP_USE_GZIP', true, true);
 | 
						|
$httpIP = null; // IP string. Or null for any.
 | 
						|
 | 
						|
@define('RPC_TIME_OUT', 5, true); // in seconds
 | 
						|
 | 
						|
@define('LOG_RPC_CALLS', false, true);
 | 
						|
@define('LOG_RPC_FAULTS', true, true);
 | 
						|
 | 
						|
@define('PHP_USE_GZIP', false, true);
 | 
						|
@define('PHP_GZIP_LEVEL', 2, true);
 | 
						|
 | 
						|
$schedule_rand = 10; // rand for schedulers start, +0..X seconds
 | 
						|
 | 
						|
$do_diagnostic = true;
 | 
						|
$log_file = '/tmp/errors.log'; // path to log file (comment or leave blank to disable logging)
 | 
						|
 | 
						|
$saveUploadedTorrents = false; // Save uploaded torrents to profile/torrents directory or not
 | 
						|
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or make unique name
 | 
						|
 | 
						|
$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
 | 
						|
$forbidUserSettings = false;
 | 
						|
 | 
						|
$scgi_host = "unix:///var/run/rtorrent.sock";
 | 
						|
$scgi_port = 0;
 | 
						|
 | 
						|
$XMLRPCMountPoint = "/RPC2";
 | 
						|
 | 
						|
$pathToExternals = array(
 | 
						|
    "php" 	=> '',
 | 
						|
    "curl"	=> '/usr/bin/curl',
 | 
						|
    "gzip"	=> '',
 | 
						|
    "id"	=> '',
 | 
						|
    "stat"	=> '',
 | 
						|
);
 | 
						|
 | 
						|
$localhosts = array( // list of local interfaces
 | 
						|
    "127.0.0.1",
 | 
						|
    "localhost",
 | 
						|
);
 | 
						|
 | 
						|
$profilePath = '/config/rutorrent';  // Path to user profiles
 | 
						|
$profileMask = 0770;                 // Mask for files and directory creation in user profiles.
 | 
						|
                                     // Both Webserver and rtorrent users must have read-write access to it.
 | 
						|
                                     // For example, if Webserver and rtorrent users are in the same group then the value may be 0770.
 | 
						|
 | 
						|
$tempDirectory = null; // Temp directory. Absolute path with trail slash. If null, then autodetect will be used.
 | 
						|
 | 
						|
$canUseXSendFile = true; // Use X-Sendfile feature if it exist
 | 
						|
 | 
						|
$locale = "UTF8";
 |