From c170dfab9197f714c5e4483caad924631779122a Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 9 Feb 2024 03:07:22 +0200 Subject: luci-app-tor: add config for tor Currently the UCI for the Tor allows to set only a list of configs to include. The only way to configure it for a user is to upload its own config and add it to list of included. We can simplify this with the app. Signed-off-by: Sergey Ponomarev --- .../luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json | 8 ++++++++ .../luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-tor/root') 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 index 19777f6bd0..0ea6d1c935 100644 --- 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 @@ -19,5 +19,13 @@ "type": "view", "path": "tor/tor-hs" } + }, + "admin/services/tor/tor": { + "title": "Tor Onion router", + "order": 30, + "action": { + "type": "view", + "path": "tor/tor" + } } } 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 index 0d109b1c98..8095a17fda 100644 --- 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 @@ -16,7 +16,10 @@ "uci": [ "tor", "tor-hs" - ] + ], + "file": { + "/etc/tor/*": [ "write" ] + } } } } -- cgit v1.2.3