diff options
author | Tianling Shen <cnsztl@immortalwrt.org> | 2024-01-25 01:03:44 +0800 |
---|---|---|
committer | Paul Donald <itsascambutmailmeanyway@gmail.com> | 2024-01-26 01:07:51 +0100 |
commit | 80f67d3ea8525646f4811dcabb447995ea0fca2c (patch) | |
tree | c50b4871185fa2bc4575d3f4e29942d743493b23 /applications/luci-app-v2raya/root/usr/share | |
parent | 60423d63f5d6f2f83aee1a56c31f214e78d4b86d (diff) |
luci-app-v2raya: add new package
Add LuCI interface for the v2rayA package.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'applications/luci-app-v2raya/root/usr/share')
-rw-r--r-- | applications/luci-app-v2raya/root/usr/share/luci/menu.d/luci-app-v2raya.json | 28 | ||||
-rw-r--r-- | applications/luci-app-v2raya/root/usr/share/rpcd/acl.d/luci-app-v2raya.json | 17 |
2 files changed, 45 insertions, 0 deletions
diff --git a/applications/luci-app-v2raya/root/usr/share/luci/menu.d/luci-app-v2raya.json b/applications/luci-app-v2raya/root/usr/share/luci/menu.d/luci-app-v2raya.json new file mode 100644 index 0000000000..564bcefed7 --- /dev/null +++ b/applications/luci-app-v2raya/root/usr/share/luci/menu.d/luci-app-v2raya.json @@ -0,0 +1,28 @@ +{ + "admin/services/v2raya": { + "title": "v2rayA", + "action": { + "type": "firstchild" + }, + "depends": { + "acl": [ "luci-app-v2raya" ], + "uci": { "v2raya": true } + } + }, + "admin/services/v2raya/config": { + "title": "Configuration", + "order": 10, + "action": { + "type": "view", + "path": "v2raya/config" + } + }, + "admin/services/v2raya/log": { + "title": "Log", + "order": 20, + "action": { + "type": "view", + "path": "v2raya/log" + } + } +} diff --git a/applications/luci-app-v2raya/root/usr/share/rpcd/acl.d/luci-app-v2raya.json b/applications/luci-app-v2raya/root/usr/share/rpcd/acl.d/luci-app-v2raya.json new file mode 100644 index 0000000000..173296e6e4 --- /dev/null +++ b/applications/luci-app-v2raya/root/usr/share/rpcd/acl.d/luci-app-v2raya.json @@ -0,0 +1,17 @@ +{ + "luci-app-v2raya": { + "description": "Grant access to v2rayA configuration", + "read": { + "file": { + "/var/log/v2raya/v2raya.log": [ "read" ] + }, + "ubus": { + "service": [ "list" ] + }, + "uci": [ "v2raya" ] + }, + "write": { + "uci": [ "v2raya" ] + } + } +} |