summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cloudflared/root
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-02-03 22:06:36 +0200
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2024-02-07 15:47:10 +0100
commitb8a4328fcfa77621258d210dffc091353fcb1989 (patch)
tree4e2b5eebcac883525118cd7f58c8613661c460a0 /applications/luci-app-cloudflared/root
parent4bbdf8d31eeb82ecf05751078d55a6e3ff842190 (diff)
luci-app-cloudflared: add Tunnels status page
The page allows to see if the tunnel has connections. This can be used for a basic troubleshooting without opening the Cloudflare dashboard. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
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" ],