mirror of
https://github.com/casjaysdevdocker/aria2
synced 2025-01-18 12:34:31 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
56dc16526e
commit
17ecc1cf5f
@ -46,10 +46,10 @@ __update_conf_files() {
|
|||||||
[ -d "/data/logs/aria2" ] || mkdir -p "/data/logs/aria2"
|
[ -d "/data/logs/aria2" ] || mkdir -p "/data/logs/aria2"
|
||||||
cp -Rf "$conf_dir/aria2.conf" "$etc_dir/aria2.conf"
|
cp -Rf "$conf_dir/aria2.conf" "$etc_dir/aria2.conf"
|
||||||
ln -sf "$conf_dir/aria2.session" "$etc_dir/aria2.session"
|
ln -sf "$conf_dir/aria2.session" "$etc_dir/aria2.session"
|
||||||
if [ -f "$etc_dir/aria-ng.config.js" ]; then
|
if [ -f "$conf_dir/aria-ng.config.js" ]; then
|
||||||
rm -Rf "$get_config"
|
rm -Rf "$get_config"
|
||||||
ln -sf "$conf_dir/aria-ng.config.js" "$get_config"
|
cp -Rf "$conf_dir/aria-ng.config.js" "$get_config"
|
||||||
ln -sf "$conf_dir/aria-ng.config.js" "$www_dir/js/aria-ng-f1dd57abb9.min.js"
|
cp -Rf "$conf_dir/aria-ng.config.js" "$www_dir/js/aria-ng-f1dd57abb9.min.js"
|
||||||
fi
|
fi
|
||||||
__replace "REPLACE_RPC_PORT" "$SERVICE_PORT" "$etc_dir/aria2.conf"
|
__replace "REPLACE_RPC_PORT" "$SERVICE_PORT" "$etc_dir/aria2.conf"
|
||||||
if [ -n "$RPC_SECRET" ]; then
|
if [ -n "$RPC_SECRET" ]; then
|
||||||
|
@ -21,6 +21,7 @@ http {
|
|||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
gzip on;
|
gzip on;
|
||||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||||
|
disable_symlinks off;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen REPLACE_SERVER_PORT;
|
listen REPLACE_SERVER_PORT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user