🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2023-03-16 03:50:28 -04:00
parent 56dc16526e
commit 17ecc1cf5f
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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;