mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-31 21:59:06 +03:00
Add luci-app-zapret
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"admin/services/zapret": {
|
||||
"title": "Zapret",
|
||||
"order": 61,
|
||||
"action": {
|
||||
"type": "alias",
|
||||
"path": "admin/services/zapret/service"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-zapret" ],
|
||||
"fs": {
|
||||
"/opt/zapret/sync_config.sh": "executable",
|
||||
"/etc/init.d/zapret": "executable"
|
||||
},
|
||||
"uci": { "zapret": true }
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/zapret/service": {
|
||||
"title": "Service",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zapret/service"
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/zapret/settings": {
|
||||
"title": "Settings",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "zapret/settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"luci-app-zapret": {
|
||||
"description": "Grant access to zapret procedures",
|
||||
"read": {
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/opt/zapret/config": [ "read" ],
|
||||
"/opt/zapret/ipset/*": [ "read" ],
|
||||
"/etc/crontabs/root": [ "read" ],
|
||||
"/etc/init.d/zapret*": [ "exec" ],
|
||||
"/opt/zapret/sync_config.sh": [ "exec" ]
|
||||
},
|
||||
"uci": [ "zapret", "network", "firewall" ],
|
||||
"ubus": {
|
||||
"luci": [ "getInitList", "setInitAction" ]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/opt/zapret/config": [ "write" ],
|
||||
"/opt/zapret/ipset/*.txt": [ "write" ],
|
||||
"/etc/crontabs/root": [ "write" ]
|
||||
},
|
||||
"uci": [ "zapret" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user