Merge status page functionality from the separate `luci-app-wireguard` package into the `luci-proto-wirguard` protocol backend. Also rewrite the status page markup to be more compact while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
25 lines
463 B
JSON
25 lines
463 B
JSON
{
|
|
"luci-proto-wireguard": {
|
|
"description": "Grant access to LuCI Wireguard procedures",
|
|
"read": {
|
|
"file": {
|
|
"/usr/bin/qrencode --inline --8bit --type=SVG --output=- -- *": [ "exec" ]
|
|
},
|
|
"ubus": {
|
|
"luci.wireguard": [
|
|
"getWgInstances"
|
|
]
|
|
},
|
|
"uci": [ "ddns", "system" ]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.wireguard": [
|
|
"generateKeyPair",
|
|
"getPublicAndPrivateKeyFromPrivate",
|
|
"generatePsk"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|