lee on Nostr: This image is pretty neat. I HTTP POSTed it to an endpoint that receives the file and ...
This image is pretty neat. I HTTP POSTed it to an endpoint that receives the file and starts seeding it as a torrent. I get the magnet URI back in return.
I can then pass that magnet URI into a HTTP proxy that will download the file over torrent and then return it back with the appropriate content type etc.
Whatchu think?
Published at
2023-01-12 19:14:42Event JSON
{
"id": "ada53acc004e197f7cf0a1d7183b5aca16a1eafb8df5638e39633f086c62e7ae",
"pubkey": "5f498ff809e02c5685e3bda193fcd7147a22e7b3971079549b0bb37643f3cacc",
"created_at": 1673550882,
"kind": 1,
"tags": [],
"content": "This image is pretty neat. I HTTP POSTed it to an endpoint that receives the file and starts seeding it as a torrent. I get the magnet URI back in return.\n\n\nI can then pass that magnet URI into a HTTP proxy that will download the file over torrent and then return it back with the appropriate content type etc.\n\n\nWhatchu think?\n\n\nhttps://webtorrent-proxy.fly.dev/proxy.jpg?magnetUri=magnet:?xt=urn:btih:be93f25f1b9f8facd81d0feafd1ce79b02278fa9\u0026dn=test.jpeg\u0026tr=wss%3A%2F%2Ftracker.btorrent.xyz\u0026tr=wss%3A%2F%2Ftracker.openwebtorrent.com\u0026tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969\u0026tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969\u0026tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337\u0026tr=udp%3A%2F%2Fexplodie.org%3A6969\u0026tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337",
"sig": "f14fe7906993e47cd7ef20a680524725f2a1a3f1403b76ff02dcb46c2d5ae7bb4bf4cbb05ea88451408f3d7c461ee82f71101d47901005c197ad1231074db2b3"
}