initial commit

This commit is contained in:
pyrschtjag committed 2026-10-02 21:34:01 +04:00
commit 13eace9ce9
219 files changed
+6918

No files matched your search

@@ -0,0 +1,43 @@
method.insert = cfg.basedir, private|const|string, (cat, "/var/lib/rtorrent/")
method.insert = cfg.download, private|const|string, (cat, "/mnt/media1/downloads/")
method.insert = cfg.session, private|const|string, (cat, (cfg.basedir), "session/")
method.insert = cfg.logs, private|const|string, (cat, "/var/log/rtorrent/")
method.insert = cfg.logfile, private|const|string, (cat, (cfg.logs), "rtorrent.log")
execute.throw = sh, -c, (cat,\
"mkdir -p \"", (cfg.session), "\" ",\
"\"", (cfg.logs), "\" ")
throttle.global_down.max_rate.set_kb = 8192
throttle.global_up.max_rate.set_kb = 8192
network.http.max_open.set = 50
network.max_open_files.set = 600
network.max_open_sockets.set = 300
network.local_address.set = {{ wan_ip }}
network.port_range.set = 6890-6899
network.port_random.set = yes
dht.mode.set = auto
protocol.pex.set = yes
protocol.encryption.set = allow_incoming,try_outgoing,enable_retry
system.daemon.set = true
#network.rpc.use_xmlrpc.set = true
#network.xmlrpc.dialect.set = 1.1
network.scgi.open_local = /run/rtorrent/rpc.sock
execute.nothrow = chmod, 770, /run/rtorrent/rpc.sock
encoding.add = UTF-8
system.umask.set = 0002
session.path.set = (cat, (cfg.session))
directory.default.set = (cat, (cfg.download))
system.cwd.set = (directory.default)
schedule2 = w_apps, 10, 10, "load.start=/mnt/media1/.torrents/apps/*.torrent,d.directory.set=/mnt/media1/apps/,d.custom1.set=apps"
schedule2 = w_games, 11, 10, "load.start=/mnt/media1/.torrents/games/*.torrent,d.directory.set=/mnt/media1/games/,d.custom1.set=games"
schedule2 = w_movies, 12, 10, "load.start=/mnt/media1/.torrents/movies/*.torrent,d.directory.set=/mnt/media1/movies/,d.custom1.set=movies"
schedule2 = w_music, 13, 10, "load.start=/mnt/media1/.torrents/music/*.torrent,d.directory.set=/mnt/media1/music/,d.custom1.set=music"
schedule2 = w_shows, 14, 10, "load.start=/mnt/media1/.torrents/shows/*.torrent,d.directory.set=/mnt/media1/shows/,d.custom1.set=shows"
schedule2 = w_ps1, 15, 10, "load.start=/mnt/media1/.torrents/ps1/*.torrent,d.directory.set=/mnt/media1/ps1/,d.custom1.set=ps1"
schedule2 = w_ps2, 16, 10, "load.start=/mnt/media1/.torrents/ps2/*.torrent,d.directory.set=/mnt/media1/ps2/,d.custom1.set=ps2"
schedule2 = w_ps3, 17, 10, "load.start=/mnt/media1/.torrents/ps3/*.torrent,d.directory.set=/mnt/media2/ps3/,d.custom1.set=ps3"
schedule2 = w_psp, 18, 10, "load.start=/mnt/media1/.torrents/psp/*.torrent,d.directory.set=/mnt/media1/psp/,d.custom1.set=psp"
schedule2 = w_ds, 19, 10, "load.start=/mnt/media1/.torrents/ds/*.torrent,d.directory.set=/mnt/media1/ds/,d.custom1.set=ds"
log.open_file = "log", (cfg.logfile)
log.add_output = "critical", "log"
log.add_output = "error", "log"
log.add_output = "warn", "log"
@@ -0,0 +1,56 @@
<?php
$httpUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36';
$httpTimeOut = 30;
$httpUseGzip = true;
$httpIP = null;
$httpProxy = array
(
'use' => false,
'proto' => 'http',
'host' => 'PROXY_HOST_HERE',
'port' => 3128
);
$rpcTimeOut = 5;
$rpcLogCalls = false;
$rpcLogFaults = true;
$phpUseGzip = false;
$phpGzipLevel = 2;
$schedule_rand = 10;
$do_diagnostic = true;
$al_diagnostic = true;
$log_file = $_ENV['RU_LOG_FILE'] ?? '/tmp/errors.log';
$saveUploadedTorrents = true;
$overwriteUploadedTorrents = false;
$topDirectory = $_ENV['RU_TOP_DIR'] ?? '/';
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///run/rtorrent/rpc.sock";
$XMLRPCMountPoint = "/RPC2";
$throttleMaxSpeed = 327625*1024;
$pathToExternals = array(
"php" => '/bin/php',
"curl" => '/bin/curl',
"gzip" => '/bin/gzip',
"id" => '/bin/id',
"stat" => '/bin/stat',
"python" => '/usr/bin/python3'
);
$localHostedMode = false;
$cachedPluginLoading = false;
$pluginMinification = true;
$localhosts = array(
"::1",
"127.0.0.1",
"localhost",
);
getenv("RU_LOCALHOSTS") && $localhosts[] = $_ENV['RU_LOCALHOSTS'];
$profilePath = $_ENV['RU_PROFILE_PATH'] ?? '../../share';
$profileMask = $_ENV['RU_PROFILE_MASK'] ?? 0777;
$tempDirectory = '/var/www/html/share/tmp';
$canUseXSendFile = false;
$locale = "UTF8";
$enableCSRFCheck = false;
$enabledOrigins = array();
$configLocalPath = dirname(__FILE__)."/config.local.php";
if(is_file($configLocalPath) && is_readable($configLocalPath))
require($configLocalPath);
@@ -0,0 +1,13 @@
[default]
enabled = user-defined
canChangeToolbar = yes
canChangeMenu = yes
canChangeOptions = yes
canChangeTabs = yes
canChangeColumns = yes
canChangeStatusBar = yes
canChangeCategory = yes
canBeShutdowned = yes
[geoip]
enabled = no
@@ -0,0 +1,21 @@
<VirtualHost *:80>
ServerName {{ rutorrent_server_name | default(inventory_hostname) }}
DocumentRoot /var/www/html
ErrorLog /var/log/apache2/rutorrent_error.log
CustomLog /var/log/apache2/rutorrent_access.log combined
<Directory /var/www/html>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.html
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php{{ php_version.stdout }}-fpm.sock|fcgi://localhost"
</FilesMatch>
ProxyPass /RPC2 scgi://unix:/run/rtorrent/rpc.sock|
ProxyPassReverse /RPC2 scgi://unix:/run/rtorrent/rpc.sock|
</VirtualHost>