feat: Ubuntu single-command deployment

- Fixed qBittorrent port configuration: 8080 → 8082
- Updated docker-compose.yml: TorAPI-qBittorrent uses host.docker.internal
- Moved TELEGRAM_BOT_TOKEN to environment variables
- Created start_ubuntu.sh for automated deployment
- Added qBittorrent systemd service with autostart
- Updated env.example with correct port (8082)
- Added UBUNTU_DEPLOYMENT.md documentation

All services now start with: ./start_ubuntu.sh
This commit is contained in:
vrubelroman 2025-10-27 23:52:27 +03:00
parent a21654106b
commit 44c19e2b45
5 changed files with 293 additions and 6 deletions

View file

@ -23,13 +23,13 @@ logging.basicConfig(
logger = logging.getLogger(__name__)
# Конфигурация
TELEGRAM_BOT_TOKEN = "7662650066:AAFgsfYJNYgpcSHaSe6fspsjqmhMkOBT1s4"
TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
TMDB_API_KEY = os.getenv("TMDB_API_KEY", "6d58225585fb77af5945a964de41849f")
TMDB_BASE_URL = "https://api.themoviedb.org/3"
TORRENT_SEARCH_URL = os.getenv("TORRENT_SEARCH_URL", "http://localhost:8443")
TORRENT_ADD_URL = os.getenv("TORRENT_ADD_URL", "http://localhost:8444")
QBITTORRENT_HOST = os.getenv("QBITTORRENT_HOST", "localhost")
QBITTORRENT_PORT = os.getenv("QBITTORRENT_PORT", "8080")
QBITTORRENT_PORT = os.getenv("QBITTORRENT_PORT", "8082")
QBITTORRENT_USERNAME = os.getenv("QBITTORRENT_USERNAME", "admin")
QBITTORRENT_PASSWORD = os.getenv("QBITTORRENT_PASSWORD", "vrubel07")