Update luci-app-nekobox.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-03-22 00:22:39 +08:00
1 parent f3e9782efb
commit 8f41953854
1 file changed
+4 -2
+4 -2
View File
@@ -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;