A shell script and Docker container for automatically setting qBittorrent's listening port from Gluetun's control server.
Variable | Example | Default | Description |
---|---|---|---|
QBT_USERNAME | username |
admin |
qBittorrent username |
QBT_PASSWORD | password |
adminadmin |
qBittorrent password |
QBT_ADDR | http://192.168.1.100:8080 |
http://localhost:8080 |
HTTP URL for the qBittorrent web UI, with port |
GTN_ADDR | http://192.168.1.100:8000 |
http://localhost:8000 |
HTTP URL for the gluetun control server, with port |
The following is an example docker-compose:
qbittorrent-port-forward-gluetun-server:
image: mjmeli/qbittorrent-port-forward-gluetun-server
container_name: qbittorrent-port-forward-gluetun-server
restart: unless-stopped
environment:
- QBT_USERNAME=username
- QBT_PASSWORD=password
- QBT_ADDR=http://192.168.1.100:8080
- GTN_ADDR=http://192.168.1.100:8000
docker build . -t qbittorrent-port-forward-gluetun-server
docker run --rm -it -e QBT_USERNAME=admin -e QBT_PASSWORD=adminadmin -e QBT_ADDR=http://192.168.1.100:8080 -e GTN_ADDR=http://192.168.1.100:8000 qbittorrent-port-forward-gluetun-server:latest