2023-12-31 09:24:05 -05:00
---
title: Installation Guide
---
2022-08-31 10:36:49 -04:00
## Dataset Structure
This is the location your completed bittorrent files will be located
2023-05-27 16:08:51 -04:00
Setting user:group to `apps` .
2022-08-31 10:36:49 -04:00
2022-12-05 09:46:26 -05:00
:::note
2022-08-31 10:36:49 -04:00
2022-12-05 09:46:26 -05:00
The `apps` :`apps` user:group is built into Truenas SCALE, it is the default user for most applications on Truenas SCALE.
You do not have to create a separate user for each application.
When configuring your application you'll typically see user:group `568` , this is the UID for `apps` and its recommended not to change it.
:::
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Dataset: Tube ](./img/dataset.png )
2022-08-31 10:36:49 -04:00
< br / >
## App Installation
### Networking
2023-05-27 16:08:51 -04:00
If you want to use ingress, its probably better to use `clusterIP` instead of `LoadBalancer`
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Networking: qbittorrent ](./img/networking.png )
2022-08-31 10:36:49 -04:00
#### WebGUI
We left this default since there was no reason to change the WebGUI port
This is ALSO the port Sonarr/Radarr and other services will use to connect to qBittorrent
2023-12-31 15:39:31 -05:00
![!Networking: qbittorrent ](./img/networking_webgui.png )
2022-08-31 10:36:49 -04:00
#### Listening Ports
2022-12-05 09:46:26 -05:00
:::tip VPN "With VPN"
- No need to port forward on your router
- If you want fast seeding, you will need a service that supports port forwarding and set the TCP Listening Port to the port Desired
- Mullvad for example, from Qbit Webui, Tools > Options > Connection tab. Set TCP Listening port to the Port Provided by Mullvad.
:::
:::tip NOVPN "Without VPN"
- You can leave the two ports default without a VPN
- If you want fast seeding though, you will need to port forward this port on your router
2022-08-31 10:36:49 -04:00
2022-12-05 09:46:26 -05:00
:::
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Networking: qbittorrent ](./img/networking_listening.png )
2022-08-31 10:36:49 -04:00
< br / >
### Storage
#### Configuration
The setup is default
2023-12-31 15:39:31 -05:00
![!Storage: qbittorrent ](./img/storage_config.png )
2022-08-31 10:36:49 -04:00
#### Data
I always mount to the root directory of the container
2023-12-31 15:39:31 -05:00
![!Storage: qbittorrent ](./img/storage_data.png )
2022-08-31 10:36:49 -04:00
< br / >
### VPN
2023-05-27 16:08:51 -04:00
Use the [Gluetun VPN Add-on Setup Guide ](https://truecharts.org/manual/SCALE/guides/vpn-setup )
2022-08-31 10:36:49 -04:00
< br / >
## In-App Setup
### Downloads
2023-05-27 16:08:51 -04:00
#### qBittorrent "qBittorrent Table + Explanation"
2022-08-31 10:36:49 -04:00
2023-05-27 16:08:51 -04:00
| Setting | Value | Explanation |
2022-08-31 10:36:49 -04:00
|------------------------------------------------ |---------------------------- |---------------------------------------------------------------------------------- |
2023-10-28 08:07:52 -04:00
| Default Torrent Management Mode: | Automatic | This is to automatically move the files torrents based on category |
| When Torrent Category changed: | Relocate Torrent | This is to automatically move the files torrents based on category |
| When Default Save Path changed: | Relocate Affected Torrents | This is to automatically move the files torrents based on category |
| When Category Save Path changed: | Relocate Affected Torrents | This is to automatically move the files torrents based on category |
2023-05-27 16:08:51 -04:00
| Default Save Path: | `/qbitvpn/complete ` | Set this to what you set your dataset mountpoint as |
| Keep incomplete torrents in: | `/qbitvpn/temp` | Keep incomplete torrents in a folder no apps are monitoring |
| Copy .torrent files for finished downloads to: | `/qbitvpn/backup` | Its nice to have a backup folder of all your `.torrents` in the event of a crash |
| Monitored Folder | `/qbitvpn/monitor` | Place `.torrent` files in this directory to automatically start those torrents |
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Downloads: qbit ](./img/settings_downloads.png )
2022-08-31 10:36:49 -04:00
< br / >
### Connection
This should equal to your listening port you set [during the installation ](https://heavysetup.info/applications/qbittorrent/installation/#listening-ports )
2023-12-31 15:39:31 -05:00
![!Connection: qbit ](./img/settings_connection.png )
2022-08-31 10:36:49 -04:00
< br / >
### Speed
- Set `Alternative Rate Limits` to `10000` KiB
- This is so during the day, or when users are using my Plex server, my qBittorrent instance isn't using _ALL_ of my bandwidth seeding
- Set my schedule from `08:00` to `02:00`
- 8am to 2am, which is around the time users are watching Plex
2023-12-31 15:39:31 -05:00
![!Speed: qbit ](./img/settings_speed.png )
2022-08-31 10:36:49 -04:00
< br / >
### BitTorrent
- Disabled `Local Peer Discovery`
- This is only useful if you are on a huge network, like a college campus or something like that
2023-12-31 15:39:31 -05:00
![!Speed: qbit ](./img/settings_bittorrent.png )
2022-08-31 10:36:49 -04:00
< br / >
### WebGUI
- Changed the password to something We would remember
Added both my LAN and Kubernetes LAN to the bypass list, this way neither of them have to authenticate, it gets annoying to log in over and over on your own network
**Bypass authentication for clients in whitelisted IP subnets**
2023-12-31 09:24:05 -05:00
- `192.168.0.0/16`
- `172.16.0.0/16`
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Speed: qbit ](./img/settings_webgui1.png )
2022-08-31 10:36:49 -04:00
Since We am using `Traefik` , We decided to add the Kubernetes LAN to:
**Enable reverse proxy support**
2023-12-31 09:24:05 -05:00
- `172.16.0.0/16`
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Speed: qbit ](./img/settings_webgui2.png )
2022-08-31 10:36:49 -04:00
< br / >
### Advanced
2023-05-27 16:08:51 -04:00
#### qBittorrent "qBittorrent Table + Explanation"
2022-08-31 10:36:49 -04:00
| Setting | Value | Explanation |
2023-05-27 16:08:51 -04:00
|------------------------------------------------ |-----------------------|---------------------------------------------------------------------------------- |
| Network interface: | `wg0` or `tun0` | Bind this to `tun0` if you are using Gluetun |
| Optional IP address to bind to: | All Ipv4 Addresses | Kubernetes doesnt support ipv6 now anyway so, We set this to just ipv4 |
| Resolve peer countries: | True | Just so We can see what countries We am leeching/seeding from |
| Reannounce to all trackers when IP or port changed: | True | In the event my IP or port changes, We want everyone to know, so We can seed or leech |
2022-08-31 10:36:49 -04:00
2023-12-31 15:39:31 -05:00
![!Speed: qbit ](./img/settings_advanced.png )
2022-08-31 10:36:49 -04:00
< br / >