From 7c68e119650160b6d68360295f5e5c623950e3b7 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sun, 22 Mar 2026 00:16:20 +0800 Subject: [PATCH] Update luci-app-nekobox.patch --- .github/diy/patches/luci-app-nekobox.patch | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/diy/patches/luci-app-nekobox.patch b/.github/diy/patches/luci-app-nekobox.patch index e95024736..752b20788 100644 --- a/.github/diy/patches/luci-app-nekobox.patch +++ b/.github/diy/patches/luci-app-nekobox.patch @@ -24,16 +24,13 @@ --- a/luci-app-nekobox/root/etc/uci-defaults/99_neko +++ b/luci-app-nekobox/root/etc/uci-defaults/99_neko -@@ -9,11 +9,36 @@ tmp_dir="/tmp" +@@ -9,11 +9,33 @@ tmp_dir="/tmp" echo "[ `date +%T` ] - Checking Files..." files_check() { + if [ -n "$(command -v nginx)" ];then +cat << 'EOF' > /etc/nginx/conf.d/nekobox.locations +location /nekobox { -+ alias /www/nekobox; -+ index index.php index.html index.htm; -+ + location ~ \.php$ { + if (!-f $request_filename) { + return 404; @@ -72,7 +69,7 @@ + if [ -n "$(command -v nginx)" ];then + if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then +cat << 'EOF' > /etc/nginx/conf.d/spectra.locations -+location /luci-static/spectra/ { ++location /spectra/ { + location ~ \.php$ { + if (!-f $request_filename) { + return 404;