summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-crowdsec-firewall-bouncer/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-crowdsec-firewall-bouncer/root')
-rw-r--r--applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/luci/menu.d/luci-app-crowdsec-firewall-bouncer.json13
-rw-r--r--applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/rpcd/acl.d/luci-app-crowdsec-firewall-bouncer.json11
2 files changed, 24 insertions, 0 deletions
diff --git a/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/luci/menu.d/luci-app-crowdsec-firewall-bouncer.json b/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/luci/menu.d/luci-app-crowdsec-firewall-bouncer.json
new file mode 100644
index 0000000000..12bc1631c5
--- /dev/null
+++ b/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/luci/menu.d/luci-app-crowdsec-firewall-bouncer.json
@@ -0,0 +1,13 @@
+{
+ "admin/network/firewall/crowdsec-firewall-bouncer": {
+ "title": "CrowdSec Bouncer",
+ "order": 60,
+ "action": {
+ "type": "view",
+ "path": "crowdsec-firewall-bouncer/form"
+ },
+ "depends": {
+ "acl": [ "luci-app-crowdsec-firewall-bouncer" ]
+ }
+ },
+}
diff --git a/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/rpcd/acl.d/luci-app-crowdsec-firewall-bouncer.json b/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/rpcd/acl.d/luci-app-crowdsec-firewall-bouncer.json
new file mode 100644
index 0000000000..bc35211a2a
--- /dev/null
+++ b/applications/luci-app-crowdsec-firewall-bouncer/root/usr/share/rpcd/acl.d/luci-app-crowdsec-firewall-bouncer.json
@@ -0,0 +1,11 @@
+{
+ "luci-app-crowdsec-firewall-bouncer": {
+ "description": "Grant UCI access to LuCI app crowdsec-firewall-bouncer",
+ "read": {
+ "uci": [ "crowdsec" ]
+ },
+ "write": {
+ "uci": [ "crowdsec" ]
+ }
+ }
+}