luci-app-acme: Add Log reader

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
Sergey Ponomarev
2024-06-01 22:30:37 +03:00
committed by Toke Høiland-Jørgensen
parent 8eb81267f0
commit 65d4b48710
4 changed files with 25 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
'use strict';
'require tools.views as views';
return views.LogreadBox("acme", "acme");

View File

@@ -3,11 +3,27 @@
"title": "ACME certificates",
"order": 50,
"action": {
"type": "view",
"path": "acme"
"type": "alias",
"path": "admin/services/acme/configure"
},
"depends": {
"acl": [ "luci-app-acme" ]
}
},
"admin/services/acme/configure": {
"title": "Configure",
"order": 10,
"action": {
"type": "view",
"path": "acme/acme"
}
},
"admin/services/acme/logread": {
"title": "Log View",
"order": 20,
"action": {
"type": "view",
"path": "acme/logread"
}
}
}

View File

@@ -6,7 +6,9 @@
"file": {
"/proc/sys/kernel/hostname": [ "read" ],
"/etc/ssl/acme": [ "list" ],
"/usr/libexec/acmesh-dnsinfo.sh": [ "exec" ]
"/usr/libexec/acmesh-dnsinfo.sh": [ "exec" ],
"/sbin/logread -e acme": [ "exec" ],
"/usr/sbin/logread -e acme": [ "exec" ]
},
"uci": [ "acme" ]
},