Hi!
I'm struggling with configs =(
After configuring docker stack with swag and qbittorent i can't access qbittorrent's web ui, it always opens swag park page..
Access through ip works fine.
Using latest images and duckdns.
Both containers are in the same network.
My docker stack
Code
services:
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000 #change PUID if needed
- PGID=100 #change PGID if needed
- TZ=Europe/Moscow # change Time Zone if needed
- URL=mysite.duckdns.org
- SUBDOMAINS=wildcard
- VALIDATION=duckdns
- DUCKDNSTOKEN=***-***
- EMAIL=***@gmail.com # define email; required to renew certificate
volumes:
- /Docker/appdata/swag:/config
ports:
- 443:443
- 81:80
restart: unless-stopped
torrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: torrent
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Moscow
- WEBUI_PORT=50000
volumes:
- /Docker/appdata/qbittorrent/config:/config
- /srv/dev-disk-by-uuid-9d78f8b6-b5f0-497a-8ae6-37c85314fe03/Torrents:/torrents
- /srv/dev-disk-by-uuid-9d78f8b6-b5f0-497a-8ae6-37c85314fe03/DownloadsNew:/downloadsNew
ports:
- 6881:6881 # qBittorrent TCP
- 6881:6881/udp # qBittorrent UDP
- 50000:50000 # qBittorrent WebUI
restart: unless-stopped
Display More
My torrent.subdomain.conf - sample file with server_name and upstream_app replaced.
Code
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name torrent.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app torrent;
set $upstream_port 50000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
proxy_set_header X-Forwarded-Host $host;
}
}
Display More
Thanks for help!