summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-xfrpc/root/usr
diff options
context:
space:
mode:
authorDengfeng Liu <liudf0716@gmail.com>2022-05-09 17:21:30 +0800
committerDengfeng Liu <liudf0716@gmail.com>2022-06-28 17:24:13 +0800
commit283ac0513f5c84005c5b3b87f243a5b597b0497e (patch)
treecc5a9339599a019350f6ce3b5f9193ce20fb8260 /applications/luci-app-xfrpc/root/usr
parent94e787bd69aec30d8f1290eb7f3f4cfa69da1683 (diff)
luci-app-xfrpc: add luci-app-xfrpc
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
Diffstat (limited to 'applications/luci-app-xfrpc/root/usr')
-rw-r--r--applications/luci-app-xfrpc/root/usr/share/luci/menu.d/luci-app-xfrpc.json12
-rw-r--r--applications/luci-app-xfrpc/root/usr/share/rpcd/acl.d/luci-app-xfrpc.json14
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"]
+ }
+ }
+}