summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cloudflared/root/usr/share
diff options
context:
space:
mode:
authorHilman Maulana <hilman0.0maulana@gmail.com>2024-01-14 16:33:37 +0700
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2024-02-01 18:08:42 +0100
commitfaf6c4f0283f14f2fdc95f298d65f11566c1aefa (patch)
treeb68c7e7b2bf8ea59d8fd37200c0ad7dab9717c8e /applications/luci-app-cloudflared/root/usr/share
parentf63e8234dbf43edd56424e54ee4e64771eebca03 (diff)
luci-app-cloudflared: configure Cloudflare Zero Trust Tunnel
Configure a tunnel and see logs of the daemon. Signed-off-by: Hilman Maulana <hilman0.0maulana@gmail.com> Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-cloudflared/root/usr/share')
-rw-r--r--applications/luci-app-cloudflared/root/usr/share/luci/menu.d/luci-app-cloudflared.json29
-rw-r--r--applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json16
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