Add torrent client integration and downloads management: introduce qbittorrent service in Docker setup, implement downloads endpoint in API, and enhance media storage to handle imported files. Update frontend routes and translations for downloads management.
This commit is contained in:
@@ -30,3 +30,31 @@ services:
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
|
||||
# Торрент-клиент: качает в /downloads → это /srv/telewave/media/downloads на хосте, который app
|
||||
# видит как /media/downloads. TeleWave не общается с клиентом по API — вы добавляете торренты в его
|
||||
# WebUI, а готовые файлы импортируете в разделе «Загрузки» админки (копированием, сидирование живёт).
|
||||
# PUID/PGID=0 — файлы root-владельца, как и у app, чтобы импорт мог их прочитать.
|
||||
qbittorrent:
|
||||
image: lscr.io/linuxserver/qbittorrent:latest
|
||||
environment:
|
||||
PUID: '0'
|
||||
PGID: '0'
|
||||
TZ: Etc/UTC
|
||||
WEBUI_PORT: '8080'
|
||||
volumes:
|
||||
- qbittorrent-config:/config
|
||||
- /srv/telewave/media/downloads:/downloads
|
||||
ports:
|
||||
- '8090:8080' # WebUI (пароль первого входа — в логах: docker compose logs qbittorrent)
|
||||
- '6881:6881'
|
||||
- '6881:6881/udp'
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
|
||||
volumes:
|
||||
qbittorrent-config:
|
||||
|
||||
Reference in New Issue
Block a user