summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-tor/root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-tor/root/usr')
-rw-r--r--applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json23
-rw-r--r--applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json22
2 files changed, 45 insertions, 0 deletions
diff --git a/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json
new file mode 100644
index 0000000000..19777f6bd0
--- /dev/null
+++ b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json
@@ -0,0 +1,23 @@
+{
+ "admin/services/tor": {
+ "title": "Tor onion router",
+ "order": 60,
+ "action": {
+ "type": "alias",
+ "path": "admin/services/tor/tor-hs"
+ },
+ "depends": {
+ "acl": [
+ "luci-app-tor"
+ ]
+ }
+ },
+ "admin/services/tor/tor-hs": {
+ "title": "Tor Onion Services",
+ "order": 20,
+ "action": {
+ "type": "view",
+ "path": "tor/tor-hs"
+ }
+ }
+}
diff --git a/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json
new file mode 100644
index 0000000000..81bb9272bd
--- /dev/null
+++ b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json
@@ -0,0 +1,22 @@
+{
+ "luci-app-tor": {
+ "description": "Grant UCI access for luci-app-tor",
+ "read": {
+ "ubus": {
+ "tor_rpcd.sh": [
+ "list-hs"
+ ]
+ },
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ },
+ "write": {
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ }
+ }
+}