diff --git a/Dockerfile b/Dockerfile index f49b2ea..e3e51e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" # package versions -ARG QBITTORRENT_VER="3.3.14" +ARG QBITTORRENT_VER="3.3.16" ARG RASTERBAR_VER="RC_1_0" # environment settings diff --git a/README.md b/README.md index 488488f..4152241 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ docker create \ -v :/downloads \ -e PGID= -e PUID= \ -e UMASK_SET=<022> \ + -e WEBUI_PORT=<8080> \ -e TZ= \ -p 6881:6881 \ -p 6881:6881/udp \ @@ -46,16 +47,25 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po * `-p 6881` - the port(s) * `-p 6881/udp` - the port(s) -* `-p 8080` - the port(s) +* `-p 8080` - webui port * `-v /config` - where qbittorrent should store its config files * `-v /downloads` - path to downloads * `-e PGID` for GroupID - see below for explanation * `-e PUID` for UserID - see below for explanation * `-e UMASK_SET` for umask setting of qbittorrent, *optional* , default if left unset is 022. +* `-e WEBUI_PORT` for changing the port of the webui, see below for explanation * `-e TZ` for timezone information, eg Europe/London It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it qbittorrent /bin/bash`. +## WEBUI_PORT variable + +Due to issues with CSRF and port mapping, should you require to alter the port for the webui you need to change both sides of the `-p 8080` switch **AND** set the `WEBUI_PORT` variable to the new port. + +For example, to set the port to 8090 you need to set `-p 8090:8090` and `-e WEBUI_PORT=8090` + +This should alleviate the "white screen" issue. + ### User / Group Identifiers Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™. @@ -90,4 +100,5 @@ To monitor the logs of the container in realtime: `docker logs -f qbittorrent` ## Versions ++ **16.09.17:** Bump to 3.3.16, Add WEBUI_PORT variable and notes to README to allow changing port of webui. + **01.08.17:** Initial Release. diff --git a/root/etc/services.d/qbittorrent/run b/root/etc/services.d/qbittorrent/run index 8162d80..97ac260 100644 --- a/root/etc/services.d/qbittorrent/run +++ b/root/etc/services.d/qbittorrent/run @@ -1,8 +1,9 @@ #!/usr/bin/with-contenv bash UMASK_SET=${UMASK_SET:-022} +WEBUI_PORT=${WEBUI_PORT:-8080} umask "$UMASK_SET" exec \ - s6-setuidgid abc /usr/bin/qbittorrent-nox + s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"