Seedbox

Ubuntu 20.04 / Debian 10 – An Anonymous and Secured Seedbox – (Part 3) Configuration and issues

HTTP2 Nginx

Traefik

6 – Configuration

These configuration steps are not exhaustive, you can play with the labels, categories, or plugins but these are required for your applications to communicate with each other and have at least minimum security.

6.1 – Deluge

  1. Access Deluge:

    • If you have installed Deluge on your own machine, you can access it to http://localhost:8112
    • If you have Deluge installed on a machine on your local network, you can access it to http://192.168.X.X:8112 where X.X has to be replaced with your machine’s local IP
    • If you have installed Deluge on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:8112.
    •    
  2. Enter the default deluge password:

    1
    2
    1

    Enter deluge

    2

    Click on Login

  3. Select the Deluge process that the Deluge WebUI interface needs to connect to:

    1
    2
    1

    Select the host

    2

    Click Connect


  4. In Preferences → Interface, change the default password:

    1
    2
    3
    4
    5
    1

    Enter the default deluge password

    2

    Enter your new password

    3

    Confirm your new password

    4

    Click on Apply

    5

    Click on OK



  5. In Preferences → Downloads:

    Fill in the path /data/torrents.
    Whatever the download folder you have previously provided in your file, the value has to be set to /data/torrents. Deluge only knows the path inside its own container, which is the one « mapped » with the downloads folder of your system in the docker-compose.yml file. This rule will apply to other containers to be configured in the rest of this tutorial.


    1
    2
    3
    1

    Fill in /data/torrents

    2

    Click on Apply

    3

    Click on Ok


    Fill in the path /downloads/torrents.
    Whatever the download folder you have previously provided in your file, the value has to be set to /downloads/torrents. Deluge only knows the path inside its own container, which is the one « mapped » with the downloads folder of your system in the docker-compose.yml file. This rule will apply to other containers to be configured in the rest of this tutorial.


    1
    2
    3
    1

    Fill in /downloads/torrents

    2

    Click on Apply

    3

    Click on Ok


  6. This allows you to categorize your downloads and move them to a specific folder depending on the category. For example, you download a music album with Lidarr, the music label will be automatically applied to your download and it will be moved to a directory dedicated to your music albums. This allows you to have a minimum storage footprint within your directories and will be very useful later, especially in Plex. In Preferences → Plugins, install the Label plugin:

    1
    2
    3
    1

    Select the Label plugin

    2

    Click on Apply

    3

    Click on Ok



  7. In the left column of the main screen, a new Labels tab has been added. Right-click on it and add the following labels:
    • movies
    • tv
    • music

  8. Once the three labels have been added, expand the Labels tab, right-click on the movies label and edit the label options:

  9. In the Folders tab:

    Fill in the path /data/movies:


    1
    2
    3
    1

    Check Apply folder settings: and Move completed to:

    2

    Fill in /data/movies

    3

    Click on Ok



    Repeat the operation for the tv label by setting the path /data/tv and for the music label by setting the path /data/music.

    Fill in the path /downloads/movies:


    1
    2
    3
    1

    Check Apply folder settings: and Move completed to:

    2

    Fill in /downloads/movies

    3

    Click on Ok



    Repeat the operation for the tv label by setting the path /downloads/tv and for the music label by setting the path /downloads/music.


6.2 – Jackett

  1. Access Jackett:

    • If you have installed Jackett on your own machine, you can access it to http://localhost:9117
    • If you have Jackett installed on a machine on your local network, you can access it to http://192.168.X.X:9117 where X.X has to be replaced with your machine’s local IP
    • If you have installed Jackett on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:9117.
  2. At the bottom of the page, add a password to restrict access to Jackett:

    1
    2
    1

    Enter a password

    2

    Click on Set Password



  3. Add your indexers (trackers) by clicking on the Add Indexer button.

6.3 – Sonarr

  1. Access Sonarr:

    • If you have installed Sonarr on your own machine, you can access it to http://localhost:8989
    • If you have Sonarr installed on a machine on your local network, you can access it to http://192.168.X.X:8989 where X.X has to be replaced with your machine’s local IP
    • If you have installed Sonarr on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:8989.
  2. Enable authentication in Settings → General → Security:

    1
    2
    3
    1

    Select Forms (Login Page)

    2

    Enter a username

    3

    Enter a password



  3. Add all your indexers in Settings → Indexers by choosing a Torznab (Custom).

    The URL and API key are to be retrieved from Jackett. Copy the URL of the desired tracker by clicking on Copy Torznab Feed button as well as the API key at the top right of Jackett.

    The categories can also be found in Jackett. Click on button in front of the tracker to obtain the exhaustive list of categories. For Sonarr, you obviously have to collect the IDs of the categories linked to the TV series (TV shows, TV or TV/Anime for example). Please note that the categories differ depending on the tracker.


    1
    2
    3
    4
    5
    6
    1

    Specify a name for your indexer (purely indicative)

    2

    Enter the URL provided by Jackett for your tracker

    3

    Enter Jackett’s API key

    4

    The categories specific for your tracker can be found in Jackett

    5

    Test your configuration

    6

    If the test passes, save your configuration


  4. Add deluge in Settings → Download Client.

    Be careful while filling the tv category. As a reminder, for every download added by Sonarr in Deluge, the tv label will be applied. Once the download is complete, the file will be moved to the directory configured in Deluge.


    1
    2
    3
    4
    5
    6
    7
    1

    Specify a name for your client (purely indicative)

    2

    Enter the URL of your Deluge

    3

    Enter the port of Deluge

    4

    Enter your deluge password

    5

    Enter the tv category

    6

    Test your configuration

    7

    If the test passes, save your configuration


  5. Finally, if you wish, you can create a profile with the quality and language of your choice in Settings → Profiles
  6. Click on Save at the top right to save your new configuration.
  7. In System, restart Sonarr to take into account the new configuration by clicking on the icon at the top right.
  8. To add a series, you must go to the Series menu, perform a search and add the series, while ensuring to specify the path: /data/tv:

    1
    2
    1

    Specify the path /data/tv

    2

    Validate


6.4 – Radarr

  1. Access Radarr:

    • If you have installed Radarr on your own machine, you can access it to http://localhost:7878
    • If you have Radarr installed on a machine on your local network, you can access it to http://192.168.X.X:7878 where X.X has to be replaced with your machine’s local IP
    • If you have installed Radarr on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:7878.
    •    
  2. Repeat the Sonarr procedure.

    Take note, in step 3, you must retrieve the IDs of the categories linked to the films (for example the ID of the Movies or Film/Video category).

    In step 4, the category to fill in is movies.

    In step 8, the path to specify is /data/movies.

6.5 – Lidarr

  1. Access Lidarr:

    • If you have installed Lidarr on your own machine, you can access it to http://localhost:8686
    • If you have Lidarr installed on a machine on your local network, you can access it to http://192.168.X.X:8686 where X.X has to be replaced with your machine’s local IP
    • If you have installed Lidarr on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:8686.
    •    
  2. Repeat the Sonarr procedure.

    Take note, in step 3, you must retrieve the IDs of the categories linked to the audio files (for example the ID of the Audio category).

    In step 4, the category to fill in is music.

    In step 8, the path to specify is /data/music.

6.6 – Plex

  1. Access Plex:

    • If you have installed Plex on your own machine, you can access it to http://localhost:32400/web
    • If you have Plex installed on a machine on your local network, you can access it to http://192.168.X.X:32400/web where X.X has to be replaced with your machine’s local IP
    • If you have installed Plex on a kimsufi or dedicated server, you can access it to your previously configured domain or via the public IP of your server http://X.X.X.X:32400/web.
  2. Visit the following URL: http://localhost:32400/web and log in or sign up.
  3. Specify a media server name and check the Allow me to access my media outside my home checkbox:
  4. Add a librairy Music, choose the desired language and specify the path /data/music:
  5. Repeat the operation with a TV Series library by specifying the path /data/tv and with a Movies library by specifying the path /data/movies.
  6. Once the 3 libraries have been added, click Next. The configuration is now complete.

7 – Tips and issues


In Deluge, the download starts and then stops after a few seconds…

You most certainly have a permissions problem. The media user is unable to write to the /data/torrents directory.

I cannot access Deluge outside my local network.

You certainly have the Deluge image with VPN and you don’t have a domain name. This is normal, you will not be able to access Deluge via the public IP of your server, it is a restriction of the image to avoid an IP leak when you download or share a torrent. Either you realize an SSH tunnel but it will be quickly binding to use, or you subscribe to a free domain name (Freenom for example) and you set up Nginx or Traefik (part 2).

I have a .torrent file, so I don’t go through Radarr, Sonarr or Lidarr, how can I apply a label to it in Deluge?

Add your torrent in Deluge and right click on it to open the context menu. You will be able to apply a label to it.

Sonarr, Radarr or Lidarr does not return any results. However, my tracker returns results.

Perform a search in Jackett via the icon and if Jackett returns results, then the problem comes from the categories entered in Sonarr, Radarr or Lidarr in the Indexers section.

Plex can’t find my server, what can I do?

Two possibilities:

  • Your association code PLEX_CLAIM in your docker-compose.yml file expired. Repeat the procedure in part 2.
  • You can add the server by performing an SSH tunnel (replace user with your user and IP_SERVER with the IP of your dedicated server):

    ssh user@IP_SERVER -L 32400:localhost:32400

    Visit the following URL: http://localhost:32400/web, your server will be found. You can then reconnect without problem via your domain or public IP.

After a download, I ended up with two identical files. Deluge moved the file into /data/tv and Sonarr copied the file into /data/tv/Chernobyl/Season 1/:

data
├── movies
├── music
├── torrents
└── tv
    ├── Chernobyl.S01E01.720p.mkv
    └── Chernobyl
        └── Season 1
            └── Chernobyl.S01E01.720p.mkv

Sonarr does not copy the file but creates a physical link (or hardlink). A physical link associates two or more files with the same space on the disk so in our case, a download does not occupy two places on the disk. These files share the same disk space.

The download manager has several functions. It lets you share your torrent files in Deluge, rename and organize your series in seasons, and lets you have a separate library for it on Plex.


Ubuntu Server 20.04Docker 19.03.8
Docker Compose 1.25.5
Nginx 1.17.10
Deluge 2.0.4
Jackett 0.16.105.0
Sonarr 2.0.0.5344
Radarr 0.2.0.1480
Lidarr 0.7.1.1381



5/5 - (5 votes)
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *