Rumah >pembangunan bahagian belakang >tutorial php >transmission + nginx = 离线BT下载站
transmission + nginx = 离线BT下载站
Transmission是Ubuntu桌面版的默认BT下载软件,用Transmission作下载器,nginx作静态资源服务器。
transmission-daemon参考文章
http://cliang.info/?p=19
镜像
docker pull hub.c.163.com/mikelinjie/btdownload:0718
资源服务器端口:9999
transmission端口:9091
用户名:transmission 密码:123456
扩展
nginx有很方便的配置,如配置用户密码等。搭建静态服务器的功能可不仅仅是提供下载功能,可以试试使用VLC播放器播放网络流媒体~~。
静态资源服务器也可以使用ftp的方式搭建,两者还都可以加权限控制哦。
示例
1.
2.
3.
4.
5.
(附)相关配置
transmission-daemon相关配置
<code>{ "<span>speed-limit-up</span>": <span><span>10</span></span>, "<span>speed-limit-up-enabled</span>": <span><span>true</span></span>, "<span>download-dir</span>": <span><span>"/var/lib/transmission-daemon/downloads"</span></span>, "<span>incomplete-dir</span>": <span><span>"/var/lib/transmission-daemon/Downloads"</span>, <span>"rpc-password"</span>: <span>"123456"</span></span>, "<span>rpc-whitelist</span>": <span><span>"*"</span></span>, }</code>
nginx相关配置
<code>user root; worker_processes <span>1</span>; ...... http { ...... server { client_max_body_size <span>4</span>G; listen <span>9999</span>; server_name localhost; root /var/lib/transmission-daemon/Downloads; charset utf-<span>8</span>; <span>#access_log logs/host.access.log main;</span> location / { <span>#auth_basic "Tel";</span><span>#auth_basic_user_file /usr/local/nginx/conf/pass_file;</span> autoindex <span><span>on</span></span>; autoindex_exact_size <span><span>on</span></span>; autoindex_localtime <span><span>on</span></span>; } <span>#error_page 404 /404.html;</span><span># redirect server error pages to the static page /50x.html</span><span>#</span> error_page <span>500</span><span>502</span><span>503</span><span>504</span> /<span>50</span>x.html; location = /<span>50</span>x.html { root html; } } ...... }</code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了 transmission + nginx = 离线BT下载站,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。