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
用戶名:transmission 密碼:123456
用戶名
用戶名都方便使用密碼等。搭建靜態伺服器的功能可不只是提供下載功能,可以試試使用VLC播放器播放網路串流~~。
靜態資源伺服器也可以使用ftp的方式來搭建,兩者還可以加權限控制喔。
範例
1.
2.
3.
4.
<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>
transmission-daemon相關配置
<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>
nginx相關配置
>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); }); 以上就介紹了 transmission + nginx = 離線BT下載站,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。