From 46c34fc6009fa5234ddc1377a2db6b966a947aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E7=A8=AE?= <39034242+kenzok8@users.noreply.github.com> Date: Sun, 9 Apr 2023 01:48:32 +0800 Subject: [PATCH] Update nginx_luci.patch --- .github/diy/patches/nginx_luci.patch | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/diy/patches/nginx_luci.patch b/.github/diy/patches/nginx_luci.patch index cd74c65b8..a10f3f0df 100644 --- a/.github/diy/patches/nginx_luci.patch +++ b/.github/diy/patches/nginx_luci.patch @@ -15,18 +15,6 @@ uwsgi_param SERVER_ADDR $server_addr; uwsgi_modifier1 9; uwsgi_pass unix:////var/run/luci-cgi_io.socket; -@@ -15,3 +17,11 @@ location ~ /cgi-bin/cgi-(backup|download|upload|exec) { - location /luci-static { - error_log stderr crit; - } -+ -+location = / { -+ return 301 $scheme://$http_host/cgi-bin/luci/; -+} -+ -+location = /luci/ { -+ return 301 $scheme://$http_host/cgi-bin/luci/; -+} --- a/nginx/files/nginx.init +++ b/nginx/files/nginx.init