32 lines
871 B
Diff
32 lines
871 B
Diff
--- a/nginx/files-luci-support/luci.locations
|
|
+++ b/nginx/files-luci-support/luci.locations
|
|
@@ -1,12 +1,14 @@
|
|
location /cgi-bin/luci {
|
|
index index.html;
|
|
include uwsgi_params;
|
|
+ uwsgi_read_timeout 300s;
|
|
uwsgi_param SERVER_ADDR $server_addr;
|
|
uwsgi_modifier1 9;
|
|
uwsgi_pass unix:////var/run/luci-webui.socket;
|
|
}
|
|
location ~ /cgi-bin/cgi-(backup|download|upload|exec) {
|
|
include uwsgi_params;
|
|
+ uwsgi_read_timeout 90s;
|
|
uwsgi_param SERVER_ADDR $server_addr;
|
|
uwsgi_modifier1 9;
|
|
uwsgi_pass unix:////var/run/luci-cgi_io.socket;
|
|
|
|
--- a/nginx/files/nginx.init
|
|
+++ b/nginx/files/nginx.init
|
|
@@ -23,6 +23,10 @@ nginx_init() {
|
|
rm -f "$(readlink "${UCI_CONF}")"
|
|
${NGINX_UTIL} init_lan
|
|
|
|
+ if [ ! -h "${UCI_CONF}" ]
|
|
+ then ln -sf /var/lib/nginx/uci.conf ${UCI_CONF}
|
|
+ fi
|
|
+
|
|
if [ -e "${UCI_CONF}" ]
|
|
then CONF="${UCI_CONF}"
|
|
else CONF="${NGINX_CONF}"
|