From 55632b110ee1055c5bc0ec61da7262cf9ac35837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Suero?= <40367219+andressuy@users.noreply.github.com> Date: Fri, 6 Dec 2019 17:05:34 -0300 Subject: [PATCH] Updated to rTorrent 0.9 settings --- RPC-Setup-XMLRPC.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RPC-Setup-XMLRPC.md b/RPC-Setup-XMLRPC.md index cbecaac..a9129be 100644 --- a/RPC-Setup-XMLRPC.md +++ b/RPC-Setup-XMLRPC.md @@ -28,19 +28,19 @@ ProxyPass /RPC2 scgi://127.0.0.1:5000 **rtorrent.rc**: ```ini -scgi_port = 127.0.0.1:5000 +network.scgi.open_port = 127.0.0.1:5000 ``` ### Lighttpd: **rtorrent.rc**: ```ini -scgi_local = /home/user/rtorrent/rpc.socket +network.scgi.open_local = /home/user/rtorrent/rpc.socket # Set correct access rights to the socket file ----------+ # so both, lighttpd and rtorrent, could perform | # read-write operations v -schedule = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",/home/user/rtorrent/rpc.socket" +schedule2 = scgi_permission,0,0,"execute.nothrow=chmod,\"g+w,o=\",/home/user/rtorrent/rpc.socket" ``` **lighttpd.conf**: @@ -62,7 +62,7 @@ scgi.server = ( **rtorrent.rc**: ```ini -scgi_port = 127.0.0.1:5000 +network.scgi.open_port = 127.0.0.1:5000 ``` **nginx.conf**: @@ -110,7 +110,7 @@ Do not forget, that on http://localhost:8008/RPC2 you will not see anything (thr If any of your downloads have non-ascii characters in the filenames, you must also set the following in rtorrent.rc to force rtorrent to use the UTF-8 encoding. The XMLRPC standard requires UTF-8 replies, and rtorrent presently has no facilities to convert between encodings so it might generate invalid replies otherwise. ``` -encoding_list = UTF-8 +encoding.add = UTF-8 ``` The web server will now route xmlrpc requests to rtorrent, which is listening only on connections from the local machine or on the local socket file. Also make sure the /RPC2 location is properly protected, and also name it differently to evade attackers probing for vulnerabilities.