initial commit

This commit is contained in:
asvow
2024-01-28 11:53:33 +08:00
parent 2844849243
commit 33fe530bd5
8 changed files with 944 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{
"admin/services/tailscale": {
"title": "Tailscale",
"order": 90,
"action": {
"type": "firstchild"
},
"depends": {
"acl": [ "luci-app-tailscale" ],
"uci": { "tailscale": true }
}
},
"admin/services/tailscale/base": {
"title": "Base settings",
"order": 10,
"action": {
"type": "view",
"path": "tailscale/base"
}
},
"admin/services/tailscale/interface": {
"title": "Interface info",
"order": 20,
"action": {
"type": "view",
"path": "tailscale/interface"
}
}
}

View File

@@ -0,0 +1,17 @@
{
"luci-app-tailscale": {
"description": "Grant access to Tailscale configuration",
"read": {
"file": {
"/sbin/ifconfig": [ "exec" ]
},
"ubus": {
"service": [ "list" ]
},
"uci": [ "tailscale" ]
},
"write": {
"uci": [ "tailscale" ]
}
}
}