Closed tiritibambix closed 2 years ago
Ok, so. So far, I have tried this :
I'm clueless !
So I tried something, because why not.
I created a proxy host in nginx proxy manager pointing to my container. I CAN ACCESS THE UI, but can't do anything : "qBittorrent client is not reachable"
There are some things wrong with your compose file:
version: "3"
services:
qbittorrentvpn:
image: trigus42/qbittorrentvpn
container_name: qbittorrentvpn
privileged: true
environment:
## Not needed when using Wireguard
# - VPN_USERNAME=myvpnusername
# - VPN_PASSWORD=myvpnpassword
- PUID=998 #optional
- PGID=100 #optional
## This environment variable doesn't exist
# - WEBUI_PORT_ENV=8991 #optional
## This neither
# - INCOMING_PORT_ENV=8999 #optional
- VPN_ENABLED=yes
- LAN_NETWORK=192.168.1.0/24
- NAME_SERVERS=8.8.8.8,8.8.4.4
ports:
## As you mentioned you need to set WebUI\HostHeaderValidation=false in the qBittorrent.conf but then this is perfectly fine
- 8991:8080
## You probably don't want to be directly connectable (circumventing the VPN)
## If you want to be connectable, you have to use a VPN that allows port forwarding (you don't have to connectable for most things, except if you use private trackers)
## This didn't do much anyway cause you didn't allow the ports in the firewall using ADDITIONAL_PORTS
# - 8999:8999
# - 8999:8999/udp
volumes:
- /srv/dev-disk-by-uuid-e782a243-3842-48b2-8144-c7e79db17f49/Files/QBittorentVPN/config:/config
- /srv/dev-disk-by-uuid-e782a243-3842-48b2-8144-c7e79db17f49/Files/QBittorentVPN/downloads:/downloads
restart: unless-stopped
However, this all shouldn't cause your problem. The only thing I can think of rn that could cause it is, that you set the LAN_NETWORK
env variable wrong. Please check that again.
Maybe the client you are trying to access the WebUI with is on another network?
If it still doesn't work, you can try to set SET_FWMARK=yes
.
Change port in qBittorrent.conf from 8080 to match my port 8991
This won't work cause the firewall only allows port 8080
You can find all environment variables you can use here: https://github.com/Trigus42/alpine-qbittorrentvpn#environment-variables
Sorry I took so long to reply. I was (and still am) quite busy.
EDIT:
Maybe the default HEALTH_CHECK_HOST
one.one.one.one
is not reachable for some reason or your DNS resolution is not working properly. Maybe try out another one like 8.8.8.8
.
Thank you so much for your answer. I tried your compose file and ... it works.
I am ashamed to admit that it is a (still unidentified) problem with my browser (vivaldi). I tried brave and it works \o/
Thank you so much for your time. Take care.
Hello !
So I have installed qbittorentvpn through a simple stack in portainer.
I changed default WEBUI_PORT_ENV to 8991 as 8080 is already in use on my system.
I downloaded the .conf file from my vpn provider and renamed it wg0.conf and placed it in /srv/.../Files/QBittorentVPN/config/wireguard/
I get this log :
I can't access webui.
What am I doing wrong ?