支持 Node.js 的流式传输 Torrent 客户端,具有 Web UI。
[![NPM 版本][npm-image]][npm-url] [![NPM 下载量][downloads-image]][downloads-url] [![Node.js 版本][node-version-image]][node-version-url] [![构建状态][travis-image]][travis-url] 支持 Node.js 的流式传输 Torrent 客户端,具有 Web UI。 基于 torrent-stream, 受 peerflix 的启发。
npm install -g peerflix-serverpeerflix-server您可以使用 config.json 文件配置应用程序(默认情况下不存在)。
选项 会传递给所有 torrent-stream 实例。
下面是一个覆盖默认值的示例:
{
"connections": 50,
"tmp": "/mnt/torrents"
}应用程序将其当前状态(种子列表)存储在 torrents.json 中
您可以通过 PEERFLIX_CONFIG_PATH 环境变量定义配置和状态文件的位置。默认值为 $HOME/.config/peerflix-server/。
您还可以通过设置 PORT 环境变量来更改默认端口:
PORT=1234 peerflix-server
# or on windows
SET PORT=1234
peerflix-server如果您想将 peerflix-server 运行为守护程序,可以使用 forever:
npm install -g foreverforever start $(which peerflix-server)您还可能想要启用日志记录 - 请参阅 文档。
请参阅 Development.md
请参阅 REST.md
请参阅 Docker.md
How do I add password protection? [npm-image]: https://img.shields.io/npm/v/peerflix-server.svg?style=flat [npm-url]: https://npmjs.org/package/peerflix-server [node-version-image]: https://img.shields.io/node/v/peerflix-server.svg?style=flat [node-version-url]: http://nodejs.org/download/ [travis-image]: https://img.shields.io/travis/asapach/peerflix-s
暂无开放 Issues,或尚未同步最近议题。