Added qBittorrent
This commit is contained in:
9
qbittorrent/.env
Normal file
9
qbittorrent/.env
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# qBittorrent variables
|
||||||
|
|
||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
|
TZ=Europe/Oslo
|
||||||
|
WEBUI_PORT=9150
|
||||||
|
TORRENTING_PORT=6881
|
||||||
|
USERNAME=qbittorrent@home.ramberg.net
|
||||||
|
PASSWORD=qBittorrent123
|
||||||
@@ -3,17 +3,30 @@ services:
|
|||||||
qbittorrent:
|
qbittorrent:
|
||||||
image: lscr.io/linuxserver/qbittorrent:latest
|
image: lscr.io/linuxserver/qbittorrent:latest
|
||||||
container_name: qbittorrent
|
container_name: qbittorrent
|
||||||
|
network_mode: "host"
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=${PUID}
|
||||||
- PGID=1000
|
- PGID=${PGID}
|
||||||
- TZ=Europe/Oslo
|
- TZ=${TZ}
|
||||||
- WEBUI_PORT=8080
|
- WEBUI_PORT=${WEBUI_PORT}
|
||||||
- TORRENTING_PORT=6881
|
- TORRENTING_PORT=${TORRENTING_PORT}
|
||||||
volumes:
|
volumes:
|
||||||
- ./appdata:/config
|
- /home/rcadmin/docker/qbittorrent/data/config:/config
|
||||||
- ./downloads:/downloads #optional
|
- cifs_mount:/downloads #optional
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- ${WEBUI_PORT}:8080
|
||||||
- 6881:6881
|
- ${TORRENTING_PORT}:6881
|
||||||
- 6881:6881/udp
|
- ${TORRENTING_PORT}:6881/udp
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
cifs_mount:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
type: cifs
|
||||||
|
device: //192.168.50.203/Datadisk
|
||||||
|
o: "username=${USERNAME},password=${PASSWORD},vers=3.0,uid=${PUID},gid=${PGID}"
|
||||||
|
|||||||
50
qbittorrent/index.html
Normal file
50
qbittorrent/index.html
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="C">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="color-scheme" content="light dark">
|
||||||
|
<meta name="description" content="qBittorrent WebUI">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<title>qBittorrent WebUI</title>
|
||||||
|
|
||||||
|
<link rel="icon" type="image/png" href="images/qbittorrent32.png">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg">
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/login.css?v=10cydrr">
|
||||||
|
<noscript>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=10cydrr">
|
||||||
|
</noscript>
|
||||||
|
|
||||||
|
<script defer src="scripts/login.js?locale=C&v=10cydrr"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<noscript id="noscript">
|
||||||
|
<h1>JavaScript Required! You must enable JavaScript for the WebUI to work properly</h1>
|
||||||
|
</noscript>
|
||||||
|
<div id="main">
|
||||||
|
<h1>qBittorrent WebUI</h1>
|
||||||
|
<div id="logo" class="col">
|
||||||
|
<img src="images/qbittorrent-tray.svg" alt="qBittorrent logo">
|
||||||
|
</div>
|
||||||
|
<div id="formplace" class="col">
|
||||||
|
<form id="loginform">
|
||||||
|
<div class="row">
|
||||||
|
<label for="username">Username</label><br>
|
||||||
|
<input type="text" id="username" name="username" autocomplete="username" autofocus required>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<label for="password">Password</label><br>
|
||||||
|
<input type="password" id="password" name="password" autocomplete="current-password" required>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<input type="submit" id="loginButton" value="Login">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div id="error_msg"></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
21
qbittorrent/notes.md
Normal file
21
qbittorrent/notes.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Notes related to qBittorrent
|
||||||
|
|
||||||
|
## How to fix 'unauthorized' webUI error on TrueNAS qbittorrent docker install
|
||||||
|
|
||||||
|
In case this is useful for someone in the future.
|
||||||
|
|
||||||
|
I couldn't use the trueNAS built app, so instead created a custom app using this docker guide here:
|
||||||
|
|
||||||
|
https://docs.linuxserver.io/images/docker-qbittorrent/#webui_port-variable
|
||||||
|
|
||||||
|
The following two key points that got this working for me.
|
||||||
|
|
||||||
|
Assuming everything is setup correctly, and the logs don't display any errors on startup.
|
||||||
|
|
||||||
|
Add the following line to the `qBittorrent.conf` file:
|
||||||
|
|
||||||
|
`WebUI\HostHeaderValidation=false`
|
||||||
|
|
||||||
|
Make sure the docker container has been shutdown before editing `qBittorrent.conf`. This is because the conf file is written to on shutdown, so any changes made whilst it's still running will be lost otherwise.
|
||||||
|
|
||||||
|
Happy days.
|
||||||
Reference in New Issue
Block a user