Transmission + nginx = Offline BT Download station
Transmission is Ubuntu Desktop version of the default BT download software, with transmission as a downloader, nginx as a static resource server.
Transmission-daemon Reference Articles
Http://cliang.info/?p=19
Mirror
Docker Pull hub.c.163.com/mikelinjie/btdownload:0718
Resource Server port: 9999
Transmission port: 9091
User name: transmission password: 123456
Extended
Nginx has a very convenient configuration, such as the configuration of user passwords. The function of static server is not only to provide download function, can try to use VLC player to play network streaming media ~ ~.
Static resource server can also be set up using FTP, and both can be added permission control OH.
Example
1.
2.
3.
4.
5.
(attached) Related configuration
Transmission-daemon Related Configurations
{ "speed-limit-up10, "speed-limit-up-enabledtrue, "download-dir"/var/lib/transmission-daemon/downloads", "incomplete-dir"/var/lib/transmission-daemon/Downloads", "rpc-password": "123456", "rpc-whitelist"*",}
Nginx Related Configuration
User root;worker_processes1;....... http {... server {client_max_body_size4G Listen9999; server_name localhost; Root/var/lib/transmission-daemon/downloads; CharSet utf-8;#access_log Logs/host.access.log main;Location/{#auth_basic "Tel";#auth_basic_user_file/usr/local/nginx/conf/pass_file;AutoIndex on; Autoindex_exact_size on; Autoindex_localtime on; }#error_page 404/404.html;# REDIRECT Server error pages to the static page/50x.html#Error_page -502503504/ -x.html; Location =/ -x.html {root HTML; } } ......}
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the transmission + nginx = Offline BT download station, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.