From: Jo-Philipp Wich Date: Mon, 19 Sep 2022 12:36:51 +0000 (+0200) Subject: uhttpd: add default LuCI ucode prefix X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d6ad46ce0a21e099c8515377917496b52e5ded3f;p=openwrt%2Fstaging%2Fjow.git 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 --- 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