MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
172 stars 92 forks source link

WEBUI_PORT not sticking within iptables #6

Open Tr4il opened 5 years ago

Tr4il commented 5 years ago

Hi!

Changing the WEBUI_PORT_ENV variable for the docker container doesn't change the port from 8080 to the set port. I believe this is because the docker container variable is set as WEBUI_PORT _ENV within the docker container's /etc/environment, but the iptables script uses ${WEBUI_PORT}, without the _ENV added. This makes it impossible to access the webui from the set port when the VPN connection is enabled. After I building this on my own and changing the hardcoded port 8080 to the port of my choice (that matched with the port mapping on my docker-compose) it works fine!

thanks for the container though, its awesome!