Cloud Torrent

Steps

  • Install Transmission sudo apt install transmission-daemon
  • Update config
cd /var/lib/transmission-daemon/.config/
sudo vim transmission-daemon/settings.json

Pay attention to: download-dir rpc-host-whitelist – specify domain via you going to access Cloud Torrent

{                                                                       
    "alt-speed-down": 50,                                               
    "alt-speed-enabled": false,                                         
    "alt-speed-time-begin": 540,                                        
    "alt-speed-time-day": 127,                                          
    "alt-speed-time-enabled": false,                                    
    "alt-speed-time-end": 1020,                                         
    "alt-speed-up": 50,                                                 
    "bind-address-ipv4": "0.0.0.0",                                     
    "bind-address-ipv6": "::",                                          
    "blocklist-enabled": false,                                         
    "blocklist-url": "http://www.example.com/blocklist",                
    "cache-size-mb": 4,                                                 
    "dht-enabled": true,                                                
    "download-dir": "/storage/MUS",                                     
    "download-queue-enabled": true,                                     
    "download-queue-size": 5,                                           
    "encryption": 1,                                                    
    "idle-seeding-limit": 30,                                           
    "idle-seeding-limit-enabled": false,                                
    "incomplete-dir": "",                                
    "incomplete-dir-enabled": false,                                    
    "lpd-enabled": true,                                                
    "message-level": 1,                                                 
    "peer-congestion-algorithm": "",                                    
    "peer-id-ttl-hours": 6,                                             
    "peer-limit-global": 200,                                           
    "peer-limit-per-torrent": 50,                                       
    "peer-port": 50100,                                                 
    "peer-port-random-high": 65535,                                     
    "peer-port-random-low": 49152,                                      
    "peer-port-random-on-start": false,                                 
    "peer-socket-tos": "default",                                       
    "pex-enabled": true,                                                
    "port-forwarding-enabled": true,                                    
    "preallocation": 1,                                                 
    "prefetch-enabled": true,                                           
    "queue-stalled-enabled": true,                                      
    "queue-stalled-minutes": 30,                                        
    "ratio-limit": 2,                                                   
    "ratio-limit-enabled": false,                                       
    "rename-partial-files": true,                                       
    "rpc-authentication-required": false,                               
    "rpc-bind-address": "127.0.0.1",                                    
    "rpc-enabled": true,                                                
    "rpc-host-whitelist": "*hexor.ru",                                  
    "rpc-host-whitelist-enabled": true,                                 
    "rpc-password": "",
    "rpc-port": 9091,                                                   
    "rpc-url": "/transmission/",                                        
    "rpc-username": "",                                                 
    "rpc-whitelist": "127.0.0.1",                                       
    "rpc-whitelist-enabled": true,                                      
    "scrape-paused-torrents-enabled": true,                             
    "script-torrent-done-enabled": false,                               
    "script-torrent-done-filename": "",                                 
    "seed-queue-enabled": false,                                        
    "seed-queue-size": 10,                                              
    "speed-limit-down": 100,                                            
    "speed-limit-down-enabled": false,                                  
    "speed-limit-up": 100,                                              
    "speed-limit-up-enabled": false,                                    
    "start-added-torrents": true,                                       
    "trash-original-torrent-files": false,                              
    "umask": 18,                                                        
    "upload-slots-per-torrent": 14,                                     
    "utp-enabled": true                                                 
}
server {
    listen [::]:443 ssl http2;
    listen 443 ssl http2;
    server_name <HOSTNAME>;
    include security.conf;
    include letsencrypt.conf;
    location / {
        proxy_pass http://127.0.0.1:9091;
        include proxy.conf;
        auth_basic           "Administrator’s Area";
        auth_basic_user_file /etc/nginx/.htpasswd;
    }
    access_log /var/log/nginx/<HOSTNAME>.access.log custom;
    error_log /var/log/nginx/<HOSTNAME>.error.log;         
}
  • It works. But standard web gui is awful, so I use Custom WEB GUI. It installs via downloading shell script and executing it. Usually it’s bad, so it’s a good idea to revise this script and make decision execute it or not.
chown -R debian-transmission:debian-transmission \
/usr/share/transmission
sudo -u debian-transmission \
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh \
--no-check-certificate -O /tmp/install-tr-control.sh
sudo -u debian-transmission \
bash /tmp/install-tr-control.sh

Leave a Reply

Your email address will not be published.