diff --git a/modules/qbittorrent/module.json b/modules/qbittorrent/module.json index 80a1b8a..05c4330 100644 --- a/modules/qbittorrent/module.json +++ b/modules/qbittorrent/module.json @@ -20,21 +20,21 @@ "port": 8112, "protocol": "tcp", "from": "mesh", - "why": "the download client's pages, and the WebUI API its consumers and its own tools call; qBittorrent refuses a request whose Host names a port other than the one it listens on, so a caller dialling the machine port gets in only when the machine publishes the same number" + "why": "the download client's pages, and the WebUI API its consumers and its own tools call. qBittorrent refuses a request whose Host names a port other than the one it listens on, so it listens on the machine port itself (host network, WEBUI_PORT=${port:8112}) and the two cannot differ on any machine" }, { "name": "peers", "port": 6881, "protocol": "tcp", "from": "mesh", - "why": "incoming BitTorrent peer connections; the client announces this number to trackers and peers, so the machine must publish it on the same one" + "why": "incoming BitTorrent peer connections; announced to trackers and peers, so qBittorrent listens on the machine port itself (TORRENTING_PORT=${port:6881})" }, { "name": "peers-udp", "port": 6881, "protocol": "udp", "from": "mesh", - "why": "DHT and uTP on the same number as the peer port; announced like it, so published on the same one" + "why": "DHT and uTP on the same number as the peer port" } ], "accesses": [ @@ -71,17 +71,14 @@ "PUID": "1000", "PGID": "1000", "TZ": "Etc/UTC", - "WEBUI_PORT": "8112" + "WEBUI_PORT": "${port:8112}", + "TORRENTING_PORT": "${port:6881}" }, - "ports": [ - "8112:8112", - "6881:6881", - "6881:6881/udp" - ], "volumes": [ "${dir:config}:/config", "/services/media/downloads:/downloads" - ] + ], + "network": "host" }, { "id": "runtime-config",