mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 23:15:13 +08:00
Update luci-app-nekobox.patch
This commit is contained in:
1 parent
345b0373ec
commit
55d34daa76
1 file changed
+2
-5
@@ -24,16 +24,13 @@
|
|||||||
|
|
||||||
--- a/luci-app-nekobox/root/etc/uci-defaults/99_neko
|
--- a/luci-app-nekobox/root/etc/uci-defaults/99_neko
|
||||||
+++ b/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..."
|
echo "[ `date +%T` ] - Checking Files..."
|
||||||
|
|
||||||
files_check() {
|
files_check() {
|
||||||
+ if [ -n "$(command -v nginx)" ];then
|
+ if [ -n "$(command -v nginx)" ];then
|
||||||
+cat << 'EOF' > /etc/nginx/conf.d/nekobox.locations
|
+cat << 'EOF' > /etc/nginx/conf.d/nekobox.locations
|
||||||
+location /nekobox {
|
+location /nekobox {
|
||||||
+ alias /www/nekobox;
|
|
||||||
+ index index.php index.html index.htm;
|
|
||||||
+
|
|
||||||
+ location ~ \.php$ {
|
+ location ~ \.php$ {
|
||||||
+ if (!-f $request_filename) {
|
+ if (!-f $request_filename) {
|
||||||
+ return 404;
|
+ return 404;
|
||||||
@@ -72,7 +69,7 @@
|
|||||||
+ if [ -n "$(command -v nginx)" ];then
|
+ if [ -n "$(command -v nginx)" ];then
|
||||||
+ if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then
|
+ if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then
|
||||||
+cat << 'EOF' > /etc/nginx/conf.d/spectra.locations
|
+cat << 'EOF' > /etc/nginx/conf.d/spectra.locations
|
||||||
+location /luci-static/spectra/ {
|
+location /spectra/ {
|
||||||
+ location ~ \.php$ {
|
+ location ~ \.php$ {
|
||||||
+ if (!-f $request_filename) {
|
+ if (!-f $request_filename) {
|
||||||
+ return 404;
|
+ return 404;
|
||||||
|
|||||||
Reference in new issue
Block a user