summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-acme/root/usr/share
diff options
context:
space:
mode:
authorHuangbin Zhan <zhanhb88@gmail.com>2020-06-24 15:22:24 +0800
committerHuangbin Zhan <zhanhb88@gmail.com>2020-06-24 15:22:24 +0800
commit18b151247bcb2f5a955a1df8e26d2cd2fa062eb0 (patch)
tree3ead3ff9c3fb4a4af7d9d0fcf090624e7af18c1d /applications/luci-app-acme/root/usr/share
parentd7d57217bb15f4f558dd66bf5cfde3035cb5c7d3 (diff)
luci-app-acme: convert to client side rendering
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
Diffstat (limited to 'applications/luci-app-acme/root/usr/share')
-rw-r--r--applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json5
-rw-r--r--applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json4
2 files changed, 6 insertions, 3 deletions
diff --git a/applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json b/applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json
index 5f1f95e127..0026905a48 100644
--- a/applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json
+++ b/applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json
@@ -3,9 +3,8 @@
"title": "ACME certs",
"order": 50,
"action": {
- "type": "cbi",
- "path": "acme",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "acme"
},
"depends": {
"acl": [ "luci-app-acme" ]
diff --git a/applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json b/applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json
index a87529528a..110f9c5451 100644
--- a/applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json
+++ b/applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json
@@ -2,6 +2,10 @@
"luci-app-acme": {
"description": "Grant UCI access for luci-app-acme",
"read": {
+ "file": {
+ "/usr/sbin/nginx": [ "read" ],
+ "/usr/sbin/uhttpd": [ "read" ]
+ },
"uci": [ "acme" ]
},
"write": {