summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cloudflared/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-cloudflared/root')
-rw-r--r--applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json10
-rw-r--r--applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json5
2 files changed, 13 insertions, 2 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
index 08c9a2d3b0..4177afa6be 100644
--- 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
@@ -18,9 +18,17 @@
"path": "cloudflared/config"
}
},
+ "admin/vpn/cloudflared/tunnels": {
+ "title": "Tunnels",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "cloudflared/tunnels"
+ }
+ },
"admin/vpn/cloudflared/log": {
"title": "Logs",
- "order": 20,
+ "order": 30,
"action": {
"type": "view",
"path": "cloudflared/log"
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
index 82a9a89a21..3013b35dba 100644
--- 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
@@ -6,7 +6,10 @@
"ubus": {
"service": [ "list" ]
},
- "file": [ "/var/log/cloudflared.log" ]
+ "file": {
+ "/var/log/cloudflared.log": [ "read" ],
+ "/usr/bin/cloudflared *": [ "exec" ]
+ }
},
"write": {
"uci": [ "cloudflared" ],