www/nginx: add NAXSI rule ID to volt (#1737)

* Update Makefile
* Update pkg-descr
* Update SettingsController.php
* Update index.volt
This commit is contained in:
Michael 2020-03-18 19:43:35 +01:00 committed by GitHub
parent a91c65f2fe
commit 3254979038
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= nginx
PLUGIN_VERSION= 1.18
PLUGIN_VERSION= 1.19
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
PLUGIN_DEPENDS= nginx
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com

View file

@ -8,6 +8,10 @@ reuse, SSL offload and HTTP media streaming.
Plugin Changelog
================
1.19
* Display NAXSI rule ID in volt
1.18
* Add proxy header for CloudFlare

View file

@ -266,7 +266,7 @@ class SettingsController extends ApiMutableModelControllerBase
// naxsi rules
public function searchnaxsiruleAction()
{
return $this->searchBase('naxsi_rule', array('description', 'ruletype', 'message'));
return $this->searchBase('naxsi_rule', array('description', 'identifier', 'ruletype', 'message'));
}
public function getnaxsiruleAction($uuid = null)

View file

@ -439,6 +439,7 @@
<tr>
<th data-column-id="description" data-type="string" data-sortable="true" data-visible="true">{{ lang._('Description') }}</th>
<th data-column-id="ruletype" data-type="boolean" data-sortable="true" data-visible="true">{{ lang._('Rule Type') }}</th>
<th data-column-id="identifier" data-type="string" data-sortable="true" data-visible="true">{{ lang._('ID') }}</th>
<th data-column-id="message" data-type="string" data-sortable="true" data-visible="true">{{ lang._('Message') }}</th>
<th data-column-id="commands" data-width="7em" data-formatter="commands" data-sortable="false">{{ lang._('Commands') }}</th>
</tr>