Compare commits

...

6 Commits

Author SHA1 Message Date
LinuxServer-CI
5d799ac9b4 Bot Updating Package Versions 2024-02-18 06:52:16 +00:00
aptalca
db45b7a47e Merge pull request #291 from linuxserver/tport
do not override torrenting port unless var is set
2024-02-14 15:25:31 -05:00
aptalca
c9fef1b8fd do not override torrenting port unless var is set 2024-02-14 14:56:49 -05:00
Adam
873a9fab4a Merge pull request #288 from pcdevil/feat/torrenting-port
Add torrenting port configuration support
2024-02-14 10:18:24 +00:00
LinuxServer-CI
ebeab95adb Bot Updating Package Versions 2024-02-11 06:51:56 +00:00
Attila Gonda
e0e573c248 Add torrenting port configuration support 2024-02-10 12:04:01 +00:00
4 changed files with 42 additions and 20 deletions

View File

@@ -80,6 +80,12 @@ Due to issues with CSRF and port mapping, should you require to alter the port f
For example, to set the port to 8090 you need to set -p 8090:8090 and -e WEBUI_PORT=8090
### TORRENTING_PORT
A bittorrent client can be an active or a passive node. Running your client as an active node has the advantage of being able to connect to both active and passive peers, and can potentially increase the number of incoming connections. This requires an open port on the host machine which might differ from container's internal one.
Similarly to the WEBUI_PORT, to set the port to 6887 you need to pass -p 6887:6887, -p 6887:6887/udp and -e TORRENTING_PORT=6887 arguments to Docker.
## Usage
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -97,6 +103,7 @@ services:
- PGID=1000
- TZ=Etc/UTC
- WEBUI_PORT=8080
- TORRENTING_PORT=6881
volumes:
- /path/to/appdata/config:/config
- /path/to/downloads:/downloads
@@ -116,6 +123,7 @@ docker run -d \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e WEBUI_PORT=8080 \
-e TORRENTING_PORT=6881 \
-p 8080:8080 \
-p 6881:6881 \
-p 6881:6881/udp \
@@ -138,6 +146,7 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
| `-e WEBUI_PORT=8080` | for changing the port of the web UI, see below for explanation |
| `-e TORRENTING_PORT=6881` | for changing the port of tcp/udp connection, see below for explanation |
| `-v /config` | Contains all relevant configuration files. |
| `-v /downloads` | Location of downloads on disk. |
@@ -302,6 +311,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **14.02.24:** - Only set/override torrenting port if the optional env var is set.
* **14.02.24:** - Add torrenting port support.
* **31.01.24:** - Remove obsolete compat packages.
* **25.12.23:** - Only pull stable releases of qbittorrent-cli.
* **07.10.23:** - Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar).

View File

@@ -4,7 +4,7 @@ Alba.CsConsoleFormat 1.0.0.89
BencodeNET 2.3.0.0 dotnet
Bouncy Castle for .NET (netstandard2.0) 1.8.8.2 dotnet
CommandLineUtils 2.4.4+3c2a4909757a51602dcca9b961d577511b85fd31.3c2a4909757a51602dcca9b961d577511b85fd31 dotnet
CsvHelper 12.0.0.0 dotnet
CsvHelper 12.1.2 dotnet
Json.NET 13.0.3.27908 dotnet
Microsoft.CSharp 4.700.22.56512 dotnet
Microsoft.VisualBasic 4.700.22.56512 dotnet
@@ -92,7 +92,7 @@ System.Net.WebSockets.Client 4.700.22.56512
System.Numerics 4.700.22.56512 dotnet
System.Numerics.Vectors 4.700.22.56512 dotnet
System.ObjectModel 4.700.22.56512 dotnet
System.Private.CoreLib 3.1.32-servicing.22559.2+c17d273aa03d4b9d14c92248a91f0d0faa881b98 dotnet
System.Private.CoreLib 4.700.22.55902 dotnet
System.Private.DataContractSerialization 4.700.22.56512 dotnet
System.Private.Uri 4.700.22.56512 dotnet
System.Private.Xml 4.700.22.56512 dotnet
@@ -174,8 +174,8 @@ System.Xml.XPath.XDocument 4.700.22.56512
System.Xml.XmlDocument 4.700.22.56512 dotnet
System.Xml.XmlSerializer 4.700.22.56512 dotnet
WindowsBase 4.700.22.56512 dotnet
alpine-baselayout 3.6.0-r0 apk
alpine-baselayout-data 3.6.0-r0 apk
alpine-baselayout 3.6.1-r0 apk
alpine-baselayout-data 3.6.1-r0 apk
alpine-keys 2.4-r1 apk
apk-tools 2.14.0-r5 apk
bash 5.2.26-r0 apk
@@ -204,38 +204,37 @@ libb2 0.98.1-r3
libblkid 2.39.3-r0 apk
libbsd 0.11.8-r0 apk
libbz2 1.0.8-r6 apk
libc-utils 0.7.2-r5 apk
libcrypto3 3.1.4-r5 apk
libcrypto3 3.1.5-r5 apk
libcurl 8.6.0-r0 apk
libexpat 2.5.0-r2 apk
libexpat 2.6.0-r0 apk
libffi 3.4.4-r3 apk
libgcc 13.2.1_git20231014-r0 apk
libgomp 13.2.1_git20231014-r0 apk
libgcc 13.2.1_git20231014-r1 apk
libgomp 13.2.1_git20231014-r1 apk
libidn2 2.3.7-r0 apk
libintl 0.22.4-r0 apk
libmd 1.1.0-r0 apk
libmount 2.39.3-r0 apk
libncursesw 6.4_p20231125-r0 apk
libpanelw 6.4_p20231125-r0 apk
libpcre2-16 10.42-r2 apk
libpcre2-16 10.43-r0 apk
libproc2 4.0.4-r0 apk
libproxy 0.5.3-r0 apk
libpsl 0.21.5-r0 apk
libssl3 3.1.4-r5 apk
libstdc++ 13.2.1_git20231014-r0 apk
libproxy 0.5.4-r0 apk
libpsl 0.21.5-r1 apk
libssl3 3.1.5-r5 apk
libstdc++ 13.2.1_git20231014-r1 apk
libtorrent-rasterbar 2.0.9-r2 apk
libunistring 1.1-r2 apk
linux-pam 1.5.3-r7 apk
mpdecimal 4.0.0-r0 apk
mscorlib 4.700.22.56512 dotnet
musl 1.2.4_git20230717-r5 apk
musl-utils 1.2.4_git20230717-r5 apk
musl 1.2.4_git20230717-r6 apk
musl-utils 1.2.4_git20230717-r6 apk
ncurses-terminfo-base 6.4_p20231125-r0 apk
netcat-openbsd 1.226-r0 apk
netstandard 4.700.22.56512 dotnet
nghttp2-libs 1.59.0-r0 apk
oniguruma 6.9.9-r0 apk
pcre2 10.42-r2 apk
pcre2 10.43-r0 apk
procps-ng 4.0.4-r0 apk
pyc 3.11.7-r1 apk
python3 3.11.7-r1 apk
@@ -247,11 +246,11 @@ qt6-qtbase 6.6.1-r0
qt6-qtbase-sqlite 6.6.1-r0 apk
readline 8.2.10-r0 apk
scanelf 1.3.7-r2 apk
shadow 4.14.3-r0 apk
shadow 4.14.4-r0 apk
skalibs 2.14.1.0-r0 apk
sqlite-libs 3.45.1-r0 apk
ssl_client 1.36.1-r19 apk
tzdata 2024a-r0 apk
tzdata 2024a-r1 apk
utmps-libs 0.1.2.2-r0 apk
xz-libs 5.4.6-r0 apk
zlib 1.3.1-r0 apk

View File

@@ -33,6 +33,7 @@ param_ports:
param_usage_include_env: true
param_env_vars:
- { env_var: "WEBUI_PORT", env_value: "8080", desc: "for changing the port of the web UI, see below for explanation"}
- { env_var: "TORRENTING_PORT", env_value: "6881", desc: "for changing the port of tcp/udp connection, see below for explanation" }
# application setup block
app_setup_block_enabled: true
@@ -49,8 +50,16 @@ app_setup_block: |
For example, to set the port to 8090 you need to set -p 8090:8090 and -e WEBUI_PORT=8090
### TORRENTING_PORT
A bittorrent client can be an active or a passive node. Running your client as an active node has the advantage of being able to connect to both active and passive peers, and can potentially increase the number of incoming connections. This requires an open port on the host machine which might differ from container's internal one.
Similarly to the WEBUI_PORT, to set the port to 6887 you need to pass -p 6887:6887, -p 6887:6887/udp and -e TORRENTING_PORT=6887 arguments to Docker.
# changelog
changelogs:
- { date: "14.02.24:", desc: "Only set/override torrenting port if the optional env var is set." }
- { date: "14.02.24:", desc: "Add torrenting port support." }
- { date: "31.01.24:", desc: "Remove obsolete compat packages."}
- { date: "25.12.23:", desc: "Only pull stable releases of qbittorrent-cli."}
- { date: "07.10.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."}

View File

@@ -2,7 +2,10 @@
# shellcheck shell=bash
WEBUI_PORT=${WEBUI_PORT:-8080}
if [[ -n "${TORRENTING_PORT}" ]]; then
TORRENTING_PORT_ARG="--torrenting-port=${TORRENTING_PORT}"
fi
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" ${TORRENTING_PORT_ARG}