Skip to content

An unltra simple and lightweight web app with simple visual interface that can convert magnet links into downloadable http stream.

License

Notifications You must be signed in to change notification settings

freakdude-india/magnet2http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magnet2http

An ultra simple and lightweight web app that can convert magnet links into downloadable http stream.

USAGE-FEATURES

  1. An extremely lightweight web app with node.js backend which can convert magnet link into direct download links.
  2. Shows the list of files in case of multifile torrents~select the file to download.
  3. Mordern web UI anyone can use.

INSTALLATION-Locally

  1. Clone the github repo using git clone https://github.com/freakdude-india/magnet2http
  2. Make sure you have node.js and npm latest version installed. If not then click here to follow installation guide.
  3. The project should be cloned in magnet2http directory, enter cd magnet2http to enter into that directory.
  4. Enter sudo su and enter your password to get sudo access, not necessary if you are using sudo -i from beginning.
  5. Then enter npm install to install required modules.
  6. Enter node server.js to run server.
  7. Web UI should be live on http://localhost:80/

SERVER DEPLOYMENT

1)Buy a vps with at least 1vcpu+2gb Ram+20gb ssd/deploy on aws,gcp,azure free trial.
2)ssh into the vps and follow all steps mentioned in local installation.
3)Open networking interface in vps control panel and edit firewall rules to allow all TCP requests through port 80 and 443.(Cause we will be deploying this on port 80 and https server will be live on port 443)
4)Install pm2 by npm install -g pm2 command.
5)Execute pm2 start server.js and pm2 start http-redirect.js(last one is optional only for https force redirect, may cause deployment issues)
6)Now your server is live and daemonized.

SSL access

Follow these steps to get free letsencrypt ssl.First add an A record in your domain registerer's DNS panel pointing to your vps IP.Google it if you don't know how to do it.
1)apt-get install certbot
2)sudo certbot certonly --manual --preferred-challenges=dns -d yourdomain.com--here replace yourdomain.com with your actual domain name.
3)now install nano text editor apt-get install nano.
4)nano server.js
5)const privateKey = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/privkey.pem', 'utf8'); const certificate = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/cert.pem', 'utf8'); const ca = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/chain.pem', 'utf8');
access this part in server.js and replace yourdomain.com with actual domain name. Enter ctrl+x then y and Enter.
6)Now again pm2 start server.js and pm2 start http-redirect.js and then pm2 save next pm2 startup.
Now the webapp should be on https.

HELP

Report errors by creating issue here.
Want help to do these

  1. Add a serach engine to search and add torrents.
  2. Build a installable desktop package.
  3. Build installabe android apk.
    Email:gogomedia365@gmail.com to join the developement process.

CREDITS

  1. https://github.com/mafintosh/torrent-stream
  2. https://github.com/mafintosh/peerflix

About

An unltra simple and lightweight web app with simple visual interface that can convert magnet links into downloadable http stream.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published