Online特价,3eur/mo,做下载机不错。急用,简单安装了Aria2+AriaNG+Caddy+FileBrowser,小绿锁没来得及上,history导出的,有点乱,可能会有错或遗漏…另外,现在FileBrowser不在以插件形式存在,反代一下即可…
Preparation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ufw enable ufw default deny ufw allow 6800 ufw allow 6881:6999/tcp ufw allow 6881:6999/udp ufw allow 22/tcp ufw allow 80/tcp ufw allow 8080/tcp ufw reload ufw status
mkdir /home/caddy && cd /home/caddy useradd -r -d /home/caddy/ -s /sbin/nologin caddy mkdir -p www/wwwroot/files
chown -R caddy:caddy /home/caddy
|
Aria2
1 2 3 4 5 6 7
| apt-get install aria2 aria2c --version mkdir /home/caddy/aria2 && cd /home/caddy/aria2 touch aria2.session && touch dht.dat && touch dht6.dat vim aria2.conf
curl 127.0.0.1:6800/jsonrpc
|
Aria2.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
dir=/home/caddy/www/wwwroot/files
disk-cache=0
continue=true
max-concurrent-downloads=10
max-connection-per-server=10
max-overall-download-limit=0
max-download-limit=0
disable-ipv6=true
min-split-size=10M
split=10
input-file=/home/caddy/aria2/aria2.session
save-session=/home/caddy/aria2/aria2.session
save-session-interval=60
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
rpc-secret=jTRdBmvr4gJrGeQHQtH05lOYMdME4TKG
enable-dht=true
enable-dht6=true
dht-file-path=/home/caddy/aria2/dht.dat dht-file-path6=/home/caddy/aria2/dht6.dat
bt-enable-lpd=true
enable-peer-exchange=true
peer-id-prefix=-TR2770- user-agent=Transmission/2.77
bt-hash-check-seed=true
bt-seed-unverified=true
bt-save-metadata=true
|
AriaNG
1 2 3
| cd /home/caddy/www/wwwroot/ wget https://github.com/mayswind/AriaNg/releases/download/1.1.4/AriaNg-1.1.4-AllInOne.zip unzip AriaNg-1.1.4-AllInOne.zip
|
Caddy
1 2 3 4 5 6 7 8
|
curl https://getcaddy.com | bash -s personal setcap cap_net_bind_service=+ep $(which caddy) vim Caddyfile
|
Caddyfile
1 2 3 4 5 6
| http://your-domain-name.com { root /home/caddy/www/wwwroot proxy /files 127.0.0.1:8080 timeouts none gzip }
|
File Browser
1 2 3 4 5
| curl -fsSL https://filebrowser.xyz/get.sh | bash cd /home/caddy/www/wwwroot/ && mkdir files filebrowser -d /home/caddy/filebrowser.db config init filebrowser -d /home/caddy/filebrowser.db config set --baseurl /files filebrowser -d /home/caddy/filebrowser.db users add user_name user_password --perm.admin
|
Run
1 2 3 4
| chown -R caddy:caddy /home/caddy sudo -u caddy aria2c --conf-path="/home/caddy/aria2/aria2.conf" -D sudo -u caddy nohup caddy -conf=/home/caddy/Caddyfile & sudo -u caddy nohup filebrowser -d /home/caddy/filebrowser.db -r /home/caddy/www/wwwroot/files &
|
Test
visit http://your-domain-name.com for AriaNG
visit http://your-domain-name.com/files for File Browser
Update Tracker List
https://github.com/ngosang/trackerslist
Ref: