From d6ad46ce0a21e099c8515377917496b52e5ded3f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 19 Sep 2022 14:36:51 +0200 Subject: [PATCH] uhttpd: add default LuCI ucode prefix Similar to the existing LuCI Lua plugin prefix, add an ucode plugin prefix which becomes effective once uhttpd-mod-ucode is installed. This will speedup executing ucode based LuCI since sources are held in memory in precompiled form, reducing the per-request startup overhead. Signed-off-by: Jo-Philipp Wich --- package/network/services/uhttpd/files/uhttpd.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/uhttpd/files/uhttpd.config b/package/network/services/uhttpd/files/uhttpd.config index a9b8ff3d15..a79f9921ea 100644 --- a/package/network/services/uhttpd/files/uhttpd.config +++ b/package/network/services/uhttpd/files/uhttpd.config @@ -63,7 +63,7 @@ config uhttpd main # handler script. Ucode support is disabled when # no handler mappings are specified. Ucode prefix # matches have precedence over the CGI prefix. -# list ucode_prefix "/ucode/example=/usr/share/example.uc" + list ucode_prefix "/cgi-bin/luci=/usr/share/ucode/luci/uhttpd.uc" # Specify the ubus-rpc prefix and socket path. # option ubus_prefix /ubus -- 2.30.2