Update luci-app-nekobox.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-03-22 00:16:20 +08:00
1 parent d1bb7ce8e9
commit 7c68e11965
1 file changed
+2 -5
+2 -5
View File
@@ -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;