From 17ecc1cf5fa0ae77e026d52d7884b01f034ab6f1 Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 16 Mar 2023 03:50:28 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs/usr/local/etc/docker/init.d/00-aria2c.sh | 6 +++--- .../usr/local/share/template-files/config/nginx/nginx.conf | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh b/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh index 15f8cd9..db8ad57 100755 --- a/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh +++ b/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh @@ -46,10 +46,10 @@ __update_conf_files() { [ -d "/data/logs/aria2" ] || mkdir -p "/data/logs/aria2" cp -Rf "$conf_dir/aria2.conf" "$etc_dir/aria2.conf" 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" - ln -sf "$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" "$get_config" + cp -Rf "$conf_dir/aria-ng.config.js" "$www_dir/js/aria-ng-f1dd57abb9.min.js" fi __replace "REPLACE_RPC_PORT" "$SERVICE_PORT" "$etc_dir/aria2.conf" if [ -n "$RPC_SECRET" ]; then diff --git a/rootfs/usr/local/share/template-files/config/nginx/nginx.conf b/rootfs/usr/local/share/template-files/config/nginx/nginx.conf index 6e8bb3b..6054299 100644 --- a/rootfs/usr/local/share/template-files/config/nginx/nginx.conf +++ b/rootfs/usr/local/share/template-files/config/nginx/nginx.conf @@ -21,6 +21,7 @@ http { keepalive_timeout 65; gzip on; map $http_upgrade $connection_upgrade { default upgrade; '' close; } + disable_symlinks off; server { listen REPLACE_SERVER_PORT;