diff options
Diffstat (limited to 'applications/luci-app-cloudflared/root/usr')
-rw-r--r-- | applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json | 29 | ||||
-rw-r--r-- | applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json | 16 |
2 files changed, 45 insertions, 0 deletions
diff --git a/applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json b/applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json new file mode 100644 index 0000000000..08c9a2d3b0 --- /dev/null +++ b/applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json @@ -0,0 +1,29 @@ +{ + "admin/vpn/cloudflared": { + "title": "Cloudflared", + "order": 80, + "action": { + "type": "firstchild" + }, + "depends": { + "acl": [ "luci-app-cloudflared" ], + "uci": { "cloudflared": true } + } + }, + "admin/vpn/cloudflared/config": { + "title": "Configuration", + "order": 10, + "action": { + "type": "view", + "path": "cloudflared/config" + } + }, + "admin/vpn/cloudflared/log": { + "title": "Logs", + "order": 20, + "action": { + "type": "view", + "path": "cloudflared/log" + } + } +}
\ No newline at end of file diff --git a/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json b/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json new file mode 100644 index 0000000000..82a9a89a21 --- /dev/null +++ b/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json @@ -0,0 +1,16 @@ +{ + "luci-app-cloudflared": { + "description": "Grant access to Cloudflared configuration", + "read": { + "uci": [ "cloudflared" ], + "ubus": { + "service": [ "list" ] + }, + "file": [ "/var/log/cloudflared.log" ] + }, + "write": { + "uci": [ "cloudflared" ], + "file": [ "/etc/cloudflared/" ] + } + } +}
\ No newline at end of file |