secubox-deb/packages/secubox-torrent
2026-07-28 16:28:26 +02:00
..
conf feat(torrent): host LXC provisioner + vhost + nft egress + config (ref #917) 2026-07-28 15:37:56 +02:00
debian fix(torrent): run install-lxc.sh via bash, add secubox-hub dep, build-essential fallback (ref #917) 2026-07-28 16:10:06 +02:00
lxc fix(torrent): seed /etc/resolv.conf in LXC (download rootfs has none, apt/npm can't resolve) (ref #917) 2026-07-28 16:28:26 +02:00
menu.d feat(torrent): host LXC provisioner + vhost + nft egress + config (ref #917) 2026-07-28 15:37:56 +02:00
nft feat(torrent): host LXC provisioner + vhost + nft egress + config (ref #917) 2026-07-28 15:37:56 +02:00
nginx feat(torrent): host LXC provisioner + vhost + nft egress + config (ref #917) 2026-07-28 15:37:56 +02:00
tests feat(torrent): debian packaging v2.0.0, remove Transmission (ref #917) 2026-07-28 15:51:10 +02:00
www/torrent feat(torrent): server wiring + purge sweep + player webui (ref #917) 2026-07-28 15:22:16 +02:00
README.md feat(torrent): debian packaging v2.0.0, remove Transmission (ref #917) 2026-07-28 15:51:10 +02:00

🌊 Torrent

WebTorrent streaming, LXC-native (v2.0.0). Paste a magnet and stream it in the browser over HTTP Range while it downloads. Ephemeral by default, with an optional Keep into a persistent library on /data.

Category: Media

Screenshot

Torrent

Architecture

The hybrid WebRTC+BitTorrent engine (webtorrent + fastify + better-sqlite3) runs isolated inside a dedicated LXC (torrent, 10.100.0.160). The host only ships:

  • the public vhost torrent.gk2.secubox.in (nginx, proxies to the LXC's :8090, streamed via HTTP Range with no buffering),
  • an nft egress visibility scope for the LXC's veth,
  • install-lxc.sh, which provisions the container and deploys the app.

v1 (Transmission via Docker/Podman, host FastAPI on /api/v1/torrent/*) was removed in 2.0.0 — see debian/changelog.

Installation

# Add SecuBox repository
curl -fsSL https://apt.secubox.in/install.sh | sudo bash

# Install package
sudo apt install secubox-torrent

Configuration

Configuration file: /etc/secubox/torrent.toml (LXC network, engine max_active/webrtc, ephemeral retention ephemeral_ttl_hours/ disk_floor_gb). Edit then re-run /usr/lib/secubox/torrent/install-lxc.sh to apply.

License

LicenseRef-CMSD-1.0 (Source-Disclosed License) — CyberMind © 2024-2026. See LICENCE-CMSD-1.0.md.