Skip to content

Commit

Permalink
luci-app-acme: Add Log reader
Browse files Browse the repository at this point in the history
We must simplify for a user to understand what happened.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
  • Loading branch information
stokito committed Jun 1, 2024
1 parent e9513c3 commit 72be42e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';
'require tools.views as views';

return views.LogreadBox("acme", "acme");
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
"luci-app-acme": {
"description": "Grant UCI access for luci-app-acme",
"read": {
"cgi-io": [ "exec" ],
"file": {
"/etc/ssl/acme": [ "list" ]
"/etc/ssl/acme": [ "list" ],
"/sbin/logread -e acme": [ "exec" ],
"/usr/sbin/logread -e acme": [ "exec" ]
},
"uci": [ "acme" ]
},
Expand Down

0 comments on commit 72be42e

Please sign in to comment.