summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/root/usr/share
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-12-14 13:11:08 +0100
committerPaul Spooren <mail@aparcar.org>2021-09-28 10:46:36 -1000
commit7c943a1d6bcf449019ca8a43e800e51f269bb8f6 (patch)
treef58be2af57522b01f2c045a430879e15f54ce222 /modules/luci-mod-system/root/usr/share
parentb5faba12442529d282668268aee0d54bd98f1419 (diff)
luci-mod-system: allow configuration of HTTPS redirection
Add a posibility for easy configuration of HTTPS redirection in uHTTPd. References: https://lists.infradead.org/pipermail/openwrt-devel/2020-December/032718.html Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'modules/luci-mod-system/root/usr/share')
-rw-r--r--modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json14
-rw-r--r--modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json14
2 files changed, 28 insertions, 0 deletions
diff --git a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json
index 4022e0cebf..ebae989d0e 100644
--- a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json
+++ b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json
@@ -60,6 +60,20 @@
}
},
+ "admin/system/admin/uhttpd": {
+ "title": "HTTP(S) Access",
+ "order": 4,
+ "action": {
+ "type": "view",
+ "path": "system/uhttpd"
+ },
+ "depends": {
+ "acl": [ "luci-mod-system-uhttpd" ],
+ "fs": { "/usr/sbin/uhttpd": "executable" }
+ }
+ },
+
+
"admin/system/startup": {
"title": "Startup",
"order": 45,
diff --git a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
index e04bcdb476..9acb6e4471 100644
--- a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
+++ b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
@@ -38,6 +38,20 @@
}
},
+ "luci-mod-system-uhttpd": {
+ "description": "Grant access to uHTTPd configuration",
+ "read": {
+ "uci": [ "uhttpd" ]
+ },
+ "write": {
+ "ubus": {
+ "luci": [ "setInitAction" ]
+ },
+ "uci": [ "uhttpd" ]
+ }
+ },
+
+
"luci-mod-system-init": {
"description": "Grant access to startup configuration",
"read": {