diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-01-16 15:16:09 +0100 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2020-01-16 15:16:09 +0100 |
commit | 529bde44081d0bc07a064e9dfb1f0b3f35e61061 (patch) | |
tree | ff6ca39ef39f33a3d022db1c6f42a31a19465711 /modules/luci-base/luasrc/view/header.htm | |
parent | 88b9d58a44ea52e812cf0c0db5b5b6b87783bd7e (diff) |
luci-base: make rpc webserver path configurable
Currently the ubus path that provide the webserver is hardcoded to be /ubus.
Change this to make it configurable from the luci config file.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'modules/luci-base/luasrc/view/header.htm')
-rw-r--r-- | modules/luci-base/luasrc/view/header.htm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/view/header.htm b/modules/luci-base/luasrc/view/header.htm index 9cdedde5c..6f7f0e48e 100644 --- a/modules/luci-base/luasrc/view/header.htm +++ b/modules/luci-base/luasrc/view/header.htm @@ -24,6 +24,7 @@ requestpath = luci.dispatcher.context.requestpath, dispatchpath = luci.dispatcher.context.path, pollinterval = luci.config.main.pollinterval or 5, + ubuspath = luci.config.main.ubuspath or '/ubus', sessionid = luci.dispatcher.context.authsession, apply_rollback = math.max(applyconf and applyconf.rollback or 30, 30), apply_holdoff = math.max(applyconf and applyconf.holdoff or 4, 1), |