Rathorian Non j'ai utilisé le script Ratxabox, et ensuite j'ai installé sur le même serveur Nextcloud.
Mon .rtorrent.rc
network.scgi.open_port = 127.0.0.1:5001
encoding.add = UTF-8
network.port_range.set = 45000-65000
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /home/manty/torrents
session.path.set = /home/manty/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
schedule2 = watch_directory,1,1,load.start=/home/manty/watch/*.torrent
schedule2 = untied_directory,5,5,stop_untied=/home/manty/watch/*.torrent
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no
throttle.min_peers.normal.set = 40
throttle.max_peers.normal.set = 100
throttle.min_peers.seed.set = 10
throttle.max_peers.seed.set = 50
throttle.max_uploads.set = 15
execute2 = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php manty &}
method.set_key = event.download.finished,filebot,"execute2=/home/manty/rtorrent-postprocess,$d.directory=,$d.name=,$d.custom1="
Mon sites-enabled/rutorrent.conf
include /etc/nginx/conf.d/log_rutorrent.conf;
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name www.mantyplex.ovh;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/letsencrypt/live/www.mantyplex.ovh/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.mantyplex.ovh/privkey.pem;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rutorrent-access.log combined if=$loggable;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
## Config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## Config rutorrent ##
location /rutorrent {
try_files $uri $uri/ /index.html;
}
location ~ ^/rutorrent/(conf|share)/(.+)$ {
deny all;
}
## Config munin ##
location /graph {
}
location /graph/img {
error_log /dev/null crit;
}
location /monitoring {
auth_basic "Monitoring";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_manty";
}
location ^~ /nginx_status {
stub_status on;
access_log off;
satisfy any;
allow 127.0.0.1;
deny all;
}
## debut conf ratxabox ##
include /etc/nginx/ratxabox.d/*.conf;
## fin conf ratxabox ##
## Config seedbox-manager ##
location /seedbox-manager {
try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
}
## Config utilisateurs ##
location /MANTY {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_manty";
}
}
Merci pour tout.