Kana API is the distributed API service for Rin-pr's Opentracker.
- Linux 3.2+
- Node.js 0.10.0+/0.12.0+
- Opentracker with Rin-pr patch
npm install
npm start
Configuration file is config.js
, you could copy it from file config.js.example
- Add rin-pr's IP(s) to
config['security'].ip_whitelist
array - Generate a new hash for
config['security'].api_key
- Edit other settings for your need.
- Add infoHash
- Path:
/add
- Method:
POST
- Formdata:
key
: your api keyinfoHash
: infoHash to be added
- HTTP StatusCode Returns:
200
- infoHash Added and reloaded tracker400
- Invalid infoHash403
- Invalid IP or Key500
- Error when adding infoHash to whitelist
- Path:
- Cron job to synchronize whitelist file