We distribute images for switchroot (android for nintendo switch) over torrents too, here’s my notes on how we build them.
Torrent creation
buildtorrent
https://packages.debian.org/stable/buildtorrent
buildtorrent -a udp://tracker.opentrackr.org:1337/announce -w http://download.switchroot.org/android-10/icosa-atv-20210205-rel.zip /var/www/download.switchroot.org/android-10/icosa-atv-20210205-rel.zip icosa-atv-20210205-rel.torrent
-w is webseeding
there’s two webseeding implementations
one is good (“getright”) other is not (the official one)
above uses the getright
You might want to use http as not many clients support getright, and even less support it with https. Torrent provides support for hashing etc itself anyways.