From 8f4195385498eceafc60874c5559dc990697ec5f Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sun, 22 Mar 2026 00:22:39 +0800 Subject: [PATCH] Update luci-app-nekobox.patch --- .github/diy/patches/luci-app-nekobox.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/diy/patches/luci-app-nekobox.patch b/.github/diy/patches/luci-app-nekobox.patch index 752b20788..5354914bb 100644 --- a/.github/diy/patches/luci-app-nekobox.patch +++ b/.github/diy/patches/luci-app-nekobox.patch @@ -24,13 +24,14 @@ --- a/luci-app-nekobox/root/etc/uci-defaults/99_neko +++ b/luci-app-nekobox/root/etc/uci-defaults/99_neko -@@ -9,11 +9,33 @@ tmp_dir="/tmp" +@@ -9,11 +9,34 @@ 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 { ++ index index.php index.html index.htm; + location ~ \.php$ { + if (!-f $request_filename) { + return 404; @@ -61,7 +62,7 @@ --- a/luci-theme-spectra/root/etc/uci-defaults/30_luci-theme-spectra +++ b/luci-theme-spectra/root/etc/uci-defaults/30_luci-theme-spectra -@@ -8,6 +8,33 @@ commit luci +@@ -8,6 +8,34 @@ commit luci EOF rm -rf /tmp/luci-* @@ -70,6 +71,7 @@ + if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then +cat << 'EOF' > /etc/nginx/conf.d/spectra.locations +location /spectra/ { ++ index index.php index.html index.htm; + location ~ \.php$ { + if (!-f $request_filename) { + return 404;