mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-11 13:47:05 +02:00
Added basic OPNsense integration, and fixed PfSense API by changing from X-API-Key and X-API-Secret headers to only x-api-key header (lowercase as specified in v2 API docs)
This commit is contained in:
@@ -90,6 +90,7 @@ type AdvancedActionsConfig struct {
|
||||
Integration string `json:"integration"`
|
||||
Mikrotik MikrotikIntegrationSettings `json:"mikrotik"`
|
||||
PfSense PfSenseIntegrationSettings `json:"pfSense"`
|
||||
OPNsense OPNsenseIntegrationSettings `json:"opnsense"`
|
||||
}
|
||||
|
||||
type MikrotikIntegrationSettings struct {
|
||||
@@ -109,6 +110,14 @@ type PfSenseIntegrationSettings struct {
|
||||
SkipTLSVerify bool `json:"skipTLSVerify"`
|
||||
}
|
||||
|
||||
type OPNsenseIntegrationSettings struct {
|
||||
BaseURL string `json:"baseUrl"`
|
||||
APIKey string `json:"apiKey"`
|
||||
APISecret string `json:"apiSecret"`
|
||||
Alias string `json:"alias"`
|
||||
SkipTLSVerify bool `json:"skipTLSVerify"`
|
||||
}
|
||||
|
||||
func defaultAdvancedActionsConfig() AdvancedActionsConfig {
|
||||
return AdvancedActionsConfig{
|
||||
Enabled: false,
|
||||
|
||||
Reference in New Issue
Block a user