Created
April 2, 2013 00:49
-
-
Save FLYBYME/5289082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies and config. | |
*/ | |
var express = require('express') | |
var rTorrent = require('rtorrent') | |
var rt = new rTorrent({ | |
host : 'localhost', | |
port : 80, | |
path : '/RPC2' | |
}); | |
rt.details(function(err, torrents) { | |
console.log('your list of torrents', torrents); | |
}) | |
var app = module.exports = express(); | |
app.get('/', function(req, res) { | |
res.send('Hello World'); | |
console.log('page render'); | |
}); | |
app.listen(3000); | |
console.log('Listening on port 3000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have not used rtorrent with nginx.
If you can get to rtorrent with xmlrpc using the server ip/url then use it with you config.
something like.