diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2024-02-09 03:07:22 +0200 |
---|---|---|
committer | Paul Donald <itsascambutmailmeanyway@gmail.com> | 2024-02-12 14:26:55 +0100 |
commit | c170dfab9197f714c5e4483caad924631779122a (patch) | |
tree | 7d6fa086f7f80bf070755c32937e5a223d16bb0b /applications/luci-app-tor/root | |
parent | a4e586397e9d5695b2c435b03fb5b5da27ac6aa0 (diff) |
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 <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-tor/root')
-rw-r--r-- | applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json | 8 | ||||
-rw-r--r-- | applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json | 5 |
2 files changed, 12 insertions, 1 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 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" ] + } } } } |