mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 16:44:23 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"admin/services/nginx": {
|
||||
"title": "Nginx",
|
||||
"order": 60,
|
||||
"action": {
|
||||
"type": "firstchild",
|
||||
"preferred": "status",
|
||||
"recurse": true
|
||||
},
|
||||
"depends": {
|
||||
"acl": ["luci-app-nginx"]
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/nginx/status": {
|
||||
"title": "Status",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "nginx/status"
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/nginx/servers": {
|
||||
"title": "Servers",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "nginx/servers"
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/nginx/locations": {
|
||||
"title": "Locations",
|
||||
"order": 30,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "nginx/locations"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"luci-app-nginx": {
|
||||
"description": "Grant UCI/init/file access of nginx to luci-app-nginx",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"service": ["list"]
|
||||
},
|
||||
"uci": ["nginx"],
|
||||
"file": {
|
||||
"/etc/nginx/conf.d/*.locations": ["read"],
|
||||
"/usr/bin/curl": ["exec"]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"uci": ["nginx"],
|
||||
"file": {
|
||||
"/etc/nginx/conf.d/*.locations": ["write"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user