diff options
author | Huangbin Zhan <zhanhb88@gmail.com> | 2020-06-24 15:22:24 +0800 |
---|---|---|
committer | Huangbin Zhan <zhanhb88@gmail.com> | 2020-06-24 15:22:24 +0800 |
commit | 18b151247bcb2f5a955a1df8e26d2cd2fa062eb0 (patch) | |
tree | 3ead3ff9c3fb4a4af7d9d0fcf090624e7af18c1d /applications/luci-app-acme/root/usr | |
parent | d7d57217bb15f4f558dd66bf5cfde3035cb5c7d3 (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')
-rw-r--r-- | applications/luci-app-acme/root/usr/share/luci/menu.d/luci-app-acme.json | 5 | ||||
-rw-r--r-- | applications/luci-app-acme/root/usr/share/rpcd/acl.d/luci-app-acme.json | 4 |
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 5f1f95e12..0026905a4 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 a87529528..110f9c545 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": { |