RTorrent/RuTorrent

提供: ArchWiki
RuTorrentから転送)
ナビゲーションに移動 検索に移動

関連記事

ruTorrentrTorrent (コンソールベースの BitTorrent クライアント) のウェブインターフェイスです。rTorrent に内蔵されている XML-RPC サーバーを利用して対話します。

ruTorrent は軽量かつ高い拡張性を持ち、uTorrent と同じような見た目になるように作られています。

インストール

AUR から rutorrentAUR をインストールしてください。

ウェブサーバーの設定

Apache

LAMP のページに従って Apache と PHP をインストール・設定してください。

  • /etc/php/php.ini を編集して open_basedir 以下の値を含めて下さい:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

AUR から mod_scgiAUR をインストールしてください

  • /etc/httpd/conf/httpd.conf で SCGI モジュールをロードします:
LoadModule scgi_module modules/mod_scgi.so
  • /etc/httpd/conf/httpd.conf に以下を追加して rTorrent で使っているポートで SCGI を有効にしてください:
SCGIMount /RPC2 127.0.0.1:5000
  • 最後に以下のように ruTorrent フォルダを /etc/httpd/conf/httpd.conf に追加します。最初の </Directory> の後に追加してください:
<IfModule alias_module>
  Alias /rutorrent /usr/share/webapps/rutorrent
  <Directory "/usr/share/webapps/rutorrent">
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>

Apache 2.4 の場合、以下のようにアクセス制御してください:

<IfModule alias_module>
  Alias /rutorrent /usr/share/webapps/rutorrent
  <Directory "/usr/share/webapps/rutorrent">
    Require all granted
  </Directory>
</IfModule>
ノート: You should enable authentication through Apache if your site is public.

Nginx

  • rutorrent のウェブルートのリンクを作成:
ln -s /usr/share/webapps/rutorrent/ /usr/share/nginx/html/rutorrent
  • /etc/php/php.ini を編集して 'open_basedir に以下の値を追加:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/
  • nginx の設定に以下の location を追加:
           location /RPC2 {
               include scgi_params;
               scgi_pass localhost:5000;
           }
  • nginx を再起動:
# systemctl restart nginx

ruTorrent の設定

上流の wiki [1] を参照してください。

参照