luci-app-acme: Add Log reader
authorSergey Ponomarev <redacted>
Sat, 1 Jun 2024 19:30:37 +0000 (22:30 +0300)
committerToke Høiland-Jørgensen <redacted>
Tue, 7 Oct 2025 12:01:06 +0000 (14:01 +0200)
Signed-off-by: Sergey Ponomarev <redacted>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js [moved from applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js with 100% similarity]
applications/luci-app-acme/htdocs/luci-static/resources/view/acme/logread.js [new file with mode: 0644]
applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json
applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json

diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/logread.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/logread.js
new file mode 100644 (file)
index 0000000..ff2294a
--- /dev/null
@@ -0,0 +1,4 @@
+'use strict';
+'require tools.views as views';
+
+return views.LogreadBox("acme", "acme");
\ No newline at end of file
index aa855905ae7807995288e25c48b73bdd0ca4e3f3..335be3c2f5c11cf8fa22a6583544ac1c78d903d4 100644 (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"
+               }
        }
 }
index a8bd9f9fb30490e5c4431c9655706e8f1965cc11..5abeab06329e919a602924a4d5efc6be4c9dbc63 100644 (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" ]
                 },
git clone https://git.99rst.org/PROJECT