Home >Backend Development >PHP Tutorial >transmission + nginx = offline BT download station

transmission + nginx = offline BT download station

WBOY
WBOYOriginal
2016-07-28 08:25:342474browse

transmission + nginx = offline BT download station

Transmission is the default BT download software for Ubuntu desktop version. Transmission is used as the downloader and nginx is used as the static resource server.

transmission-daemon reference article
http://cliang.info/?p=19

mirror

docker pull hub.c.163.com/mikelinjie/btdownload:0718

Resource server port: 9999

transmission port: 9091

Username: Transmission password: 123456

Extension

nginx has very convenient configuration, such as configuring user passwords, etc. The function of building a static server is not only to provide download functions, you can try using VLC player to play network streaming media~~.
Static resource servers can also be built using ftp, and permission control can be added to both.

Example

1.
 transmission + nginx = 离线BT下载站
2.
 transmission + nginx = 离线BT下载站
3.
 transmission + nginx = 离线BT下载站
4.
 transmission + nginx = 离线BT下载站
5.
 transmission + nginx = 离线BT下载站

(attached) related configuration

transmission-daemon related configuration

<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 related configuration

<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); }); });

The above introduces the transmission + nginx = offline BT download station, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn