diff options
Diffstat (limited to 'applications/luci-app-xfrpc/root')
-rw-r--r-- | applications/luci-app-xfrpc/root/usr/share/luci/menu.d/luci-app-xfrpc.json | 12 | ||||
-rw-r--r-- | applications/luci-app-xfrpc/root/usr/share/rpcd/acl.d/luci-app-xfrpc.json | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/applications/luci-app-xfrpc/root/usr/share/luci/menu.d/luci-app-xfrpc.json b/applications/luci-app-xfrpc/root/usr/share/luci/menu.d/luci-app-xfrpc.json new file mode 100644 index 0000000000..6526a1d619 --- /dev/null +++ b/applications/luci-app-xfrpc/root/usr/share/luci/menu.d/luci-app-xfrpc.json @@ -0,0 +1,12 @@ +{ + "admin/services/xfrpc": { + "title": "Reverse proxy", + "action": { + "type": "view", + "path": "xfrpc" + }, + "depends": { + "acl": [ "luci-app-xfrpc" ] + } + } +} diff --git a/applications/luci-app-xfrpc/root/usr/share/rpcd/acl.d/luci-app-xfrpc.json b/applications/luci-app-xfrpc/root/usr/share/rpcd/acl.d/luci-app-xfrpc.json new file mode 100644 index 0000000000..af9af7100c --- /dev/null +++ b/applications/luci-app-xfrpc/root/usr/share/rpcd/acl.d/luci-app-xfrpc.json @@ -0,0 +1,14 @@ +{ + "luci-app-xfrpc": { + "description": "Grant access to LuCI app xfrpc", + "read": { + "ubus": { + "service": [ "list" ] + }, + "uci": ["xfrpc"] + }, + "write": { + "uci": ["xfrpc"] + } + } +} |