diff options
author | Florian Eckert <fe@dev.tdt.de> | 2022-06-29 11:07:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 11:07:53 +0200 |
commit | 745faa142c0d4342173e55ef02c2e9d667275b9c (patch) | |
tree | 2ae53a542086033604f4d01ee26ad52f83a426cf /applications/luci-app-xfrpc/root/usr/share | |
parent | 18cdb4c02858dca2ca2c3fef126f8631bfb1a80e (diff) | |
parent | 283ac0513f5c84005c5b3b87f243a5b597b0497e (diff) |
Merge pull request #5842 from liudf0716/xfrpc
luci-app-xfrpc: add luci-app-xfrpc
Diffstat (limited to 'applications/luci-app-xfrpc/root/usr/share')
-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"] + } + } +} |