snix/users/Profpatsch/whatcd-resolver/src
Profpatsch 498c8e05f8 feat(users/Profpatsch/whatcd-resolver): serve torrent files
We want to be able to play the files directly from the web
browser (jukebox).

Luckily, transmission does not seem to change the filenames from the
ones given by the torrent file, so we can literally parse the torrent
file and construct a path to the media file, extraordinary.

Adjusts the caddy reverse proxy to serve the given transmission
directory (using my weird sshfs forwarding scheme in the shell.nix
preset lol), then redirect from a handler that maps from
torrentId/fileId to the actual file.

Change-Id: Iab5faf7cc06066f3253031af31e137c0e28f54e3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13270
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
2025-03-15 19:11:00 +00:00
..
AppT.hs feat(users/Profpatsch/whatcd-resolver): parallelize search pages 2025-03-11 19:45:40 +00:00
Bencode.hs feat(users/Profpatsch/whatcd-resolver): add a simple torrent parser 2025-03-06 23:41:43 +00:00
Html.hs refactor(users/Profpatsch/whatcd-resolver): use builder for otel 2025-01-05 21:00:11 +00:00
Http.hs feat(users/Profpatsch/my-tools): init 2025-03-15 16:32:01 +00:00
JsonLd.hs refactor(users/Profpatsch/whatcd-resolver): continue http 2024-08-06 09:59:40 +00:00
Optional.hs feat(users/Profpatsch/whatcd-resolver): trace http requests 2024-03-23 19:51:59 +00:00
Redacted.hs feat(users/Profpatsch/whatcd-resolver): serve torrent files 2025-03-15 19:11:00 +00:00
Transmission.hs refactor(users/Profpatsch/whatcd-resolver): use builder for otel 2025-01-05 21:00:11 +00:00
WhatcdResolver.hs feat(users/Profpatsch/whatcd-resolver): serve torrent files 2025-03-15 19:11:00 +00:00