summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-tinyproxy/root
diff options
context:
space:
mode:
authorRamon Van Gorkom <Ramon00c00@gmail.com>2024-10-12 17:32:20 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-10-16 15:01:23 +0200
commitbbb08197c51daa388633437bf14fc15f91227e34 (patch)
treeb668b1072d2aa134c992f9fc16f9d775c0d0bf51 /applications/luci-app-tinyproxy/root
parent09a1a58b13263500a71dea4fbb62b4ad572569c3 (diff)
luci-app-tinyproxy: Translate to JS
luci-app-tinyproxy: Translate to JS Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
Diffstat (limited to 'applications/luci-app-tinyproxy/root')
-rw-r--r--applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json26
-rw-r--r--applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json7
-rw-r--r--applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json4
3 files changed, 8 insertions, 29 deletions
diff --git a/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json
index 1d7ea3dc59..a362c1571d 100644
--- a/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json
+++ b/applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json
@@ -2,30 +2,8 @@
"admin/services/tinyproxy": {
"title": "Tinyproxy",
"action": {
- "type": "firstchild"
- },
- "depends": {
- "acl": [ "luci-app-tinyproxy" ],
- "uci": { "tinyproxy": true }
- }
- },
-
- "admin/services/tinyproxy/status": {
- "title": "Status",
- "order": 1,
- "action": {
- "type": "template",
- "path": "tinyproxy_status"
- }
- },
-
- "admin/services/tinyproxy/config": {
- "title": "Configuration",
- "order": 2,
- "action": {
- "type": "cbi",
- "path": "tinyproxy",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "tinyproxy/tinyproxy"
}
}
}
diff --git a/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json
index db72bebef5..c0c4a4449b 100644
--- a/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json
+++ b/applications/luci-app-tinyproxy/root/usr/share/rpcd/acl.d/luci-app-tinyproxy.json
@@ -2,7 +2,12 @@
"luci-app-tinyproxy": {
"description": "Grant UCI access for luci-app-tinyproxy",
"read": {
- "uci": [ "tinyproxy" ]
+ "uci": [ "tinyproxy" ],
+ "file": {
+ "/usr/bin/wget -q http://127.0.0.1:[0-9]*/ -O -": [ "exec" ],
+ "/etc/init.d/tinyproxy reload": ["exec"],
+ "/etc/init.d/tinyproxy restart": ["exec"]
+ }
},
"write": {
"uci": [ "tinyproxy" ]
diff --git a/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json b/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json
deleted file mode 100644
index 252144ffee..0000000000
--- a/applications/luci-app-tinyproxy/root/usr/share/ucitrack/luci-app-tinyproxy.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "config": "tinyproxy",
- "init": "tinyproxy"
-}