mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: hotfix api endpoints + frontend for Phalcon 4
This commit is contained in:
committed by
Franco Fichtner
parent
4dd2f2bc85
commit
722d316508
@@ -59,7 +59,7 @@ class LogsController extends ApiControllerBase
|
||||
* action to query the TLS handshake information - useful for building fingerprint databases
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function tls_handshakesAction()
|
||||
public function tlsHandshakesAction()
|
||||
{
|
||||
$this->sendConfigdToClient('nginx tls_handshakes');
|
||||
}
|
||||
@@ -90,7 +90,7 @@ class LogsController extends ApiControllerBase
|
||||
* @return array if feasible, otherwise null and the data is sent directly back
|
||||
* @throws \OPNsense\Base\ModelException ?
|
||||
*/
|
||||
public function stream_accessesAction($uuid = null)
|
||||
public function streamAccessesAction($uuid = null)
|
||||
{
|
||||
$this->nginx = new Nginx();
|
||||
if (!isset($uuid)) {
|
||||
@@ -109,7 +109,7 @@ class LogsController extends ApiControllerBase
|
||||
* @return array if feasible, otherwise null and the data is sent directly back
|
||||
* @throws \OPNsense\Base\ModelException ?
|
||||
*/
|
||||
public function stream_errorsAction($uuid = null)
|
||||
public function streamErrorsAction($uuid = null)
|
||||
{
|
||||
$this->nginx = new Nginx();
|
||||
if (!isset($uuid)) {
|
||||
|
||||
+30
-30
@@ -340,34 +340,34 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
}
|
||||
|
||||
// http security headers
|
||||
public function searchsecurity_headerAction()
|
||||
public function searchsecurityHeaderAction()
|
||||
{
|
||||
return $this->searchBase('security_header', array('description'));
|
||||
}
|
||||
|
||||
public function getsecurity_headerAction($uuid = null)
|
||||
public function getsecurityHeaderAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('security_header', 'security_header', $uuid);
|
||||
}
|
||||
|
||||
public function addsecurity_headerAction()
|
||||
public function addsecurityHeaderAction()
|
||||
{
|
||||
return $this->addBase('security_header', 'security_header');
|
||||
}
|
||||
|
||||
public function delsecurity_headerAction($uuid)
|
||||
public function delsecurityHeaderAction($uuid)
|
||||
{
|
||||
return $this->delBase('security_header', $uuid);
|
||||
}
|
||||
|
||||
public function setsecurity_headerAction($uuid)
|
||||
public function setsecurityHeaderAction($uuid)
|
||||
{
|
||||
return $this->setBase('security_header', 'security_header', $uuid);
|
||||
}
|
||||
|
||||
// access limit zone headers
|
||||
public function searchlimit_zoneAction()
|
||||
public function searchlimitZoneAction()
|
||||
{
|
||||
return $this->searchBase(
|
||||
'limit_zone',
|
||||
@@ -375,23 +375,23 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
);
|
||||
}
|
||||
|
||||
public function getlimit_zoneAction($uuid = null)
|
||||
public function getlimitZoneAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('limit_zone', 'limit_zone', $uuid);
|
||||
}
|
||||
|
||||
public function addlimit_zoneAction()
|
||||
public function addlimitZoneAction()
|
||||
{
|
||||
return $this->addBase('limit_zone', 'limit_zone');
|
||||
}
|
||||
|
||||
public function dellimit_zoneAction($uuid)
|
||||
public function dellimitZoneAction($uuid)
|
||||
{
|
||||
return $this->delBase('limit_zone', $uuid);
|
||||
}
|
||||
|
||||
public function setlimit_zoneAction($uuid)
|
||||
public function setlimitZoneAction($uuid)
|
||||
{
|
||||
return $this->setBase('limit_zone', 'limit_zone', $uuid);
|
||||
}
|
||||
@@ -433,34 +433,34 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
}
|
||||
|
||||
// TLS fingerprints for MITM detection
|
||||
public function searchtls_fingerprintAction()
|
||||
public function searchtlsFingerprintAction()
|
||||
{
|
||||
return $this->searchBase('tls_fingerprint', array('description'));
|
||||
}
|
||||
|
||||
public function gettls_fingerprintAction($uuid = null)
|
||||
public function gettlsFingerprintAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('tls_fingerprint', 'tls_fingerprint', $uuid);
|
||||
}
|
||||
|
||||
public function addtls_fingerprintAction()
|
||||
public function addtlsFingerprintAction()
|
||||
{
|
||||
return $this->addBase('tls_fingerprint', 'tls_fingerprint');
|
||||
}
|
||||
|
||||
public function deltls_fingerprintAction($uuid)
|
||||
public function deltlsFingerprintAction($uuid)
|
||||
{
|
||||
return $this->delBase('tls_fingerprint', $uuid);
|
||||
}
|
||||
|
||||
public function settls_fingerprintAction($uuid)
|
||||
public function settlsFingerprintAction($uuid)
|
||||
{
|
||||
return $this->setBase('tls_fingerprint', 'tls_fingerprint', $uuid);
|
||||
}
|
||||
|
||||
// limit_request_connection
|
||||
public function searchlimit_request_connectionAction()
|
||||
public function searchlimitRequestConnectionAction()
|
||||
{
|
||||
return $this->searchBase(
|
||||
'limit_request_connection',
|
||||
@@ -468,28 +468,28 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
);
|
||||
}
|
||||
|
||||
public function getlimit_request_connectionAction($uuid = null)
|
||||
public function getlimitRequestConnectionAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('limit_request_connection', 'limit_request_connection', $uuid);
|
||||
}
|
||||
|
||||
public function addlimit_request_connectionAction()
|
||||
public function addlimitRequestConnectionAction()
|
||||
{
|
||||
return $this->addBase('limit_request_connection', 'limit_request_connection');
|
||||
}
|
||||
|
||||
public function dellimit_request_connectionAction($uuid)
|
||||
public function dellimitRequestConnectionAction($uuid)
|
||||
{
|
||||
return $this->delBase('limit_request_connection', $uuid);
|
||||
}
|
||||
|
||||
public function setlimit_request_connectionAction($uuid)
|
||||
public function setlimitRequestConnectionAction($uuid)
|
||||
{
|
||||
return $this->setBase('limit_request_connection', 'limit_request_connection', $uuid);
|
||||
}
|
||||
// cache path
|
||||
public function searchcache_pathAction()
|
||||
public function searchcachePathAction()
|
||||
{
|
||||
return $this->searchBase(
|
||||
'cache_path',
|
||||
@@ -497,23 +497,23 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
);
|
||||
}
|
||||
|
||||
public function getcache_pathAction($uuid = null)
|
||||
public function getcachePathAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('cache_path', 'cache_path', $uuid);
|
||||
}
|
||||
|
||||
public function addcache_pathAction()
|
||||
public function addcachePathAction()
|
||||
{
|
||||
return $this->addBase('cache_path', 'cache_path');
|
||||
}
|
||||
|
||||
public function delcache_pathAction($uuid)
|
||||
public function delcachePathAction($uuid)
|
||||
{
|
||||
return $this->delBase('cache_path', $uuid);
|
||||
}
|
||||
|
||||
public function setcache_pathAction($uuid)
|
||||
public function setcachePathAction($uuid)
|
||||
{
|
||||
return $this->setBase('cache_path', 'cache_path', $uuid);
|
||||
}
|
||||
@@ -719,28 +719,28 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
}
|
||||
}
|
||||
// SYSLOG targets
|
||||
public function searchsyslog_targetAction()
|
||||
public function searchsyslogTargetAction()
|
||||
{
|
||||
return $this->searchBase('syslog_target', array('description', 'host', 'facility', 'severity'));
|
||||
}
|
||||
|
||||
public function getsyslog_targetAction($uuid = null)
|
||||
public function getsyslogTargetAction($uuid = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
return $this->getBase('syslog_target', 'syslog_target', $uuid);
|
||||
}
|
||||
|
||||
public function addsyslog_targetAction()
|
||||
public function addsyslogTargetAction()
|
||||
{
|
||||
return $this->addBase('syslog_target', 'syslog_target');
|
||||
}
|
||||
|
||||
public function delsyslog_targetAction($uuid)
|
||||
public function delsyslogTargetAction($uuid)
|
||||
{
|
||||
return $this->delBase('syslog_target', $uuid);
|
||||
}
|
||||
|
||||
public function setsyslog_targetAction($uuid)
|
||||
public function setsyslogTargetAction($uuid)
|
||||
{
|
||||
return $this->setBase('syslog_target', 'syslog_target', $uuid);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class IndexController extends \OPNsense\Base\IndexController
|
||||
/**
|
||||
* show the nginx TLS handshakes page /ui/nginx/index/tls_handshakes
|
||||
*/
|
||||
public function tls_handshakesAction()
|
||||
public function tlsHandshakesAction()
|
||||
{
|
||||
$this->view->pick('OPNsense/Nginx/tls_handshakes');
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user