mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
nginx: adds ubus external module
- Adds ubus module to nginx - Select module by default - Adds script to detect ubus module and append config for luci - Switch all external module to xz Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
@@ -25,4 +25,17 @@ if [ -f "/etc/nginx/luci_nginx.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if nginx -V 2>&1 | grep -q ubus; then
|
||||
if [ -z "$(cat /etc/nginx/luci_uwsgi.conf | grep ubus)" ]; then
|
||||
cat <<EOT >> /etc/nginx/luci_uwsgi.conf
|
||||
|
||||
location /ubus {
|
||||
ubus_interpreter;
|
||||
ubus_socket_path /var/run/ubus.sock;
|
||||
ubus_parallel_req 2;
|
||||
}
|
||||
EOT
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user