How to install Cloud Torrent on Debian 9

20th Mar 2018 Karibu

When you want to download some torrents on a different machine and get a direct link to download it back through HTTP, you don't have much choices. But Cloud Torrent is one of them.

I recently refreshed my article on Flood, a modern Web-Ui for Rtorrent, that enable you to get directly via HTTP, the torrent you just downloaded on the machine. As it is based on rtorrent, it also has plenty of others features. But if you are looking for a simple web torrent downloader. (Add a torrent, get it back), Cloud Torrent is probably the best for this.

Written in Go (golang), Cloud Torrent is a self hosted remote torrent client. You simply can add torrents (URL or magnet) that will be downloaded on the local disk of the server, which is then retrievable or streamable via HTTP.

Here are the main features:

  • Single binary (Meaning a very simple installation)
  • Cross platform
  • Embedded torrent search
  • Real-time updates
  • Mobile-friendly

The dev is working on few others features, especially on the RSS one, that will enable us to download automatically new release of your favorite shows.

Installation

You don't need much, beside a Apache server and curl.

1) Install Curl

Simply run (In root or with sudo):

apt install curl


2) Download the latest version of Cloud Torrent and install it

curl https://i.jpillora.com/cloud-torrent! | bash


3) Create a systemd service to launch it at boot time

First we will create a folder dedicated for the configuration and for the downloads folder.

mkdir /home/user/cloud-torrent

Replace user by your own user (This step is actually optional, if you already have a dedicated folder for your torrent).

Now create the systemD service file:

nano /etc/systemd/system/cloud-torrent.service

And add:

[Unit]
Description=cloud-torrent

[Service]
WorkingDirectory=/home/user/cloud-torrent/
ExecStart=/usr/local/bin/cloud-torrent --port 8080 --config-path /home/user/cloud-torrent/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password"
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

You will need to replace the user:password variable by the one you want as it will be used to access to your Cloud Torrent instance.

Now enable it and start it

systemctl enable cloud-torrent
systemctl start cloud-torrent

You should now have access to your Cloud Torrent instance through your IP:8080.

4) Create a dedicated virtualhost

It's not convenient to use the port number to access Cloud Torrent. You might want to access it through a dedicated subdomain may be. Here is how to do it.

First you will need the mods proxy-html and proxy-http enabled. In root, or with sudo, simpy run:

apt install libapache2-mod-proxy-html
a2enmod proxy_http

Now create a dedicated virtualhost

nano /etc/apache2/sites-available/cloud-torrent.conf

and add:

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ServerName dl.domain.tld

        ProxyRequests Off
        <proxy>
        Require all granted
        </proxy>
        ProxyPass / http://localhost:8080/
        ProxyPassReverse / http://localhost:8080/

    ErrorLog ${APACHE_LOG_DIR}/cloud-torrent_error.log
    CustomLog ${APACHE_LOG_DIR}/cloud-torrent_access.log combined

</VirtualHost>

Enable the configuration and restart Apache Still in root, run:

a2ensite cloud-torrent
systemctl reload apache2

And that's it, you should now have access to your Clood Torrent instance by connecting directly to your subdomain!

Gravatar

Loves to discover web-based apps to install on his own server@home and write articles about it

21 Comments:

Add a comment

Comments

http://canadianpharmacystorm.com j http://viagrawithoutdoctorspres.com d http://canpharmb3.com 6 http://genericvgrmax.com 3 http://cialisxtl.com
Written on Thu, 16 Jan 2020 05:46:09 by DouglasAgort
canadian pharmacy generic viagra real cialis without a doctor prescription
Written on Sat, 28 Dec 2019 00:06:26 by CharlesswalK
viagra coupons 75% off viagra boner sildenafil 20 mg vs viagra how long does viagra last viagra cost cialis vs viagra http://boomaga.ru/goto/?goto=https://canpharmb3.com http://www.kanban.ru/redir.asp?url=https://canpharmb3.com https://dirtyboundaries.com/cgi-bin/top/out.cgi?ses=gna2rkxerh&id=251&url=https://canpharmb3.com http://eurica.net/go?https://canpharmb3.com/
Written on Fri, 27 Dec 2019 20:55:59 by MichaelHak
side effects of viagra viagra samples from pfizer how much does viagra cost what helps viagra work better otc viagra sildenafil citrate generic viagra 100mg https://thermoforming.send-it.nl/link.php?id=1c383cd30b7c298ab50293adfecb7b18|f2682c2ed6193e284aef8107b2e62a4e&link=https://canpharmb3.com http://yagotin.com/redirect?url=https://canpharmb3.com https://www.nuolaidos.lt/lt/partners/go?rurl=https://canpharmb3.com https://hollywoodkhabar.com/index.php/bigyapan/10/?url=https://canpharmb3.com
Written on Fri, 27 Dec 2019 12:01:21 by MichaelHak
cheapest viagra viagra cost canadian pharmacy viagra cheapest viagra free viagra generic viagra prices http://www.virginhaven.com/cgi-bin/ucj/c.cgi?url=https://canpharmb3.com http://gucn.cn/home/link.php?url=https://canpharmb3.com http://www.muxianji.cn/go.asp?url=https://canpharmb3.com http://fishland.wsd.jp/redirect.php?action=url&goto=canpharmb3.com
Written on Thu, 26 Dec 2019 14:17:15 by MichaelHak
sildenafil 20 mg vs viagra viagra erection buy viagra online viagra samples free viagra viagra prices https://redir.me/d?https://canpharmb3.com/">buy https://www.ilesrl.com/admin/gestionebanner/filesbanner/trackclicks.asp?id=27&cct=327&5779=801985&url=https://canpharmb3.com https://stocks.cafe/hide_top_banner?url=https://canpharmb3.com http://mojgorod.ru/cgi-bin/catalog/jumplinks.cgi?id=10359&url=https://canpharmb3.com
Written on Wed, 25 Dec 2019 09:42:28 by MichaelHak
viagra in action legitimate cialis by mail
Written on Wed, 25 Dec 2019 09:41:48 by CharlesswalK
cost of viagra sildenafil citrate generic viagra 100mg viagra single packs viagra without a doctor prescription walmart п»їviagra 100mg viagra without a doctor prescription http://www.sporta-klubi.lv/away.php?url=https://canpharmb3.com https://www.designdirectory.com/(X(1)S(ekx1bhrs3n5e0k1ayzwo35gl))/redirect?firm_id=230240&url=canpharmb3.com&AspxAutoDetectCookieSupport=1 http://biographera.net/download.php?url=https://canpharmb3.com http://www.sunhun.com/link.php?url=https://canpharmb3.com
Written on Tue, 24 Dec 2019 14:42:38 by MichaelHak
5mg cialis viagra 100mg
Written on Tue, 24 Dec 2019 14:31:17 by CharlesswalK
generic viagra without subscription canada viagra sildenafil citrate generic viagra 100mg https://viagrawithoutdoctorspres.com/#
Written on Mon, 23 Dec 2019 03:00:00 by GlennMer
viagra cost per pill cost of viagra 100mg generic viagra 100mg https://viagrawithoutdoctorspres.com/#
Written on Sat, 21 Dec 2019 15:54:48 by GlennMer
viagra substitute over counter viagra for women viagra without a doctor prescription walmart https://viagrawithoutdoctorspres.com/#
Written on Thu, 19 Dec 2019 13:19:17 by GlennMer
when will generic viagra be available http://genericvgrmax.com/#
Written on Wed, 18 Dec 2019 15:27:08 by GlennMer
viagra cost http://genericvgrmax.com/#
Written on Wed, 18 Dec 2019 09:47:15 by GlennMer
reliable canadian pharmacy reviews canadian pharmacy viagra online pharmacy viagra http://canadianpharmacystorm.com/#
Written on Mon, 16 Dec 2019 14:09:51 by Georgeham
the pharmacy rx pharmacy canadian pharmacy 365 http://canadianpharmacystorm.com/#
Written on Sun, 15 Dec 2019 21:35:00 by Georgeham
mexican pharmacy certified canadian pharmacy canadian pharmacies online http://canadianpharmacystorm.com/#
Written on Sun, 15 Dec 2019 16:15:57 by Georgeham
levitra adverse effects http://levitrao.com buy levitra online cheap
Written on Thu, 07 Nov 2019 16:47:18 by tliwnw
Csináltam valami hibásat, ... Fera
Written on Mon, 22 Oct 2018 21:37:17 by Szabó Ferenc
Corrected. Thanks for raising this!
Written on Sun, 01 Apr 2018 16:14:01 by Karibu
Thanks for you blog, mate, I'm an avid reader by way of subscription. Please have a look at your RSS feed URL, it seems to be broken. The correct one now is https://freedif.org/blog.rss I suppose.
Written on Sun, 01 Apr 2018 08:14:52 by DaveBowman