mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-01-25 13:18:49 +01:00
Upd aria2
This commit is contained in:
parent
dbdcde20eb
commit
0994cbfd22
6
Lib.sh
6
Lib.sh
@ -4,3 +4,9 @@ mkcd(){
|
|||||||
mkdir -vp "$1" && \
|
mkdir -vp "$1" && \
|
||||||
cd "$1"
|
cd "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cpdir(){
|
||||||
|
echo "'$1'"
|
||||||
|
mkdir -p "$1" && \
|
||||||
|
cp -rT "/$1" "./$1"
|
||||||
|
}
|
||||||
|
@ -23,12 +23,14 @@ mkcd ./Root
|
|||||||
/Server/Scripts/Backup/*.sh /Server/Scripts/Backup/*.cfg \
|
/Server/Scripts/Backup/*.sh /Server/Scripts/Backup/*.cfg \
|
||||||
./Server/Scripts/Backup/
|
./Server/Scripts/Backup/
|
||||||
|
|
||||||
|
cpdir Transfers/aria2/Conf
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkcd ./Home
|
mkcd ./Home
|
||||||
mkdir -vp ./.config
|
#mkdir -vp ./.config
|
||||||
for p in \
|
#for p in \
|
||||||
aria2
|
# aria2
|
||||||
do
|
#do
|
||||||
cp -vrT /$h/.config/$p ./.config/$p
|
# cp -vrT /$h/.config/$p ./.config/$p
|
||||||
done
|
#done
|
||||||
|
57
Server/Root/Transfers/aria2/Conf/Server.conf
Normal file
57
Server/Root/Transfers/aria2/Conf/Server.conf
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Promemoria, link per prendere spunto:
|
||||||
|
# * https://gist.github.com/qzm/a54559726896d5e6bf21adf2363ad334
|
||||||
|
# * https://libreddit.kavin.rocks/r/seedboxes/comments/fz2od8/unlimited_seeding_with_aria2/
|
||||||
|
# ** https://pastebin.com/Yyqubrci
|
||||||
|
|
||||||
|
# Tip: load this file with: --conf-path=${FILE}
|
||||||
|
# Note: ensure files /Transfers/aria2/Service/{Session.dat,Cookies.txt} exist before starting, otherwise create as empty
|
||||||
|
|
||||||
|
# Start in the background
|
||||||
|
daemon=true
|
||||||
|
|
||||||
|
# Moderate logging to file
|
||||||
|
log-level=notice
|
||||||
|
log=/Transfers/aria2/Service/Log.log
|
||||||
|
|
||||||
|
# Directory for storing downloads
|
||||||
|
dir=/Transfers/Storage
|
||||||
|
|
||||||
|
# Today no IPv6 on my WAN, so let's avoid overhead
|
||||||
|
disable-ipv6=true
|
||||||
|
|
||||||
|
# Remote control
|
||||||
|
enable-rpc=true
|
||||||
|
rpc-listen-all=true
|
||||||
|
rpc-listen-port=6800
|
||||||
|
rpc-allow-origin-all=true
|
||||||
|
|
||||||
|
# Session data persistance
|
||||||
|
save-session=/Transfers/aria2/Service/Session.dat
|
||||||
|
input-file=/Transfers/aria2/Service/Session.dat
|
||||||
|
save-cookies=/Transfers/aria2/Service/Cookies.txt
|
||||||
|
load-cookies=/Transfers/aria2/Service/Cookies.txt
|
||||||
|
|
||||||
|
# Cache storage
|
||||||
|
dht-file-path=/Transfers/aria2/Service/DHT.dat
|
||||||
|
|
||||||
|
# [ BitTorrent ]
|
||||||
|
|
||||||
|
# Store metadata to .torrent files and always load it
|
||||||
|
bt-save-metadata=true
|
||||||
|
bt-load-saved-metadata=true
|
||||||
|
|
||||||
|
# Peer discovery on the global Internet
|
||||||
|
enable-dht=true
|
||||||
|
|
||||||
|
# LAN peer discovery
|
||||||
|
# Note: it can cause privacy issues, and with many torrents it could flood the LAN
|
||||||
|
bt-enable-lpd=true
|
||||||
|
|
||||||
|
# Peer exchange for more efficient transmission
|
||||||
|
enable-peer-exchange=true
|
||||||
|
|
||||||
|
# Seed forever
|
||||||
|
seed-ratio=0.0
|
||||||
|
|
||||||
|
# [ --- ]
|
||||||
|
|
@ -4,6 +4,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 81;
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name hlb0.octt.eu.org;
|
server_name hlb0.octt.eu.org;
|
||||||
ssl_certificate /etc/letsencrypt/live/hlb0.octt.eu.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/hlb0.octt.eu.org/fullchain.pem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user