Automatically updates the listening port for qbittorrent to the port forwarded by Gluetun.
This is my fork of snoringdragon's gluetun qbittorrent port forward update tool.
Gluetun has the ability to forward ports for supported VPN providers, but qbittorrent does not have the ability to update its listening port dynamically.
I modified the script by snoringdragon to reach out to the Gluetun control server API and updates the qbittorrent's listening port based on the response.
First, ensure you are able to successfully connect qbittorrent to the forwarded port manually (can be seen by a green globe at the bottom of the WebUI).
Second, ensure the Gluetun control server port (default 8000) is exposed in your compose file.
Finally, insert the template in docker-compose.yml
into your docker-compose containing gluetun, substituting the default values for your own.
This has been a relatively personal project for my stack after seeing a number of people talk about running bash scripts on their Docker host to keep the dreaded firewall warning away. I found snoringdragon's repo and decided it would be a fun way to learn to build and push a real Docker image, and also learn some basics in GitHub along the way.