mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 03:45:14 +08:00
Update luci-app-nekobox.patch
This commit is contained in:
1 parent
d1bb7ce8e9
commit
7c68e11965
1 file changed
+2
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user