mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
lapi to capi : allow push of tainted/custom/manual decisions (#1154)
* add console command to control signal sharing * modify metrics endpoint to add lastpush Co-authored-by: alteredCoder <kevin@crowdsec.net>
This commit is contained in:
parent
50fb1e3df1
commit
6e92da76ad
36 changed files with 851 additions and 81 deletions
|
@ -49,6 +49,11 @@ func LoadTestConfig() csconfig.Config {
|
|||
ListenURI: "http://127.0.0.1:8080",
|
||||
DbConfig: &dbconfig,
|
||||
ProfilesPath: "./tests/profiles.yaml",
|
||||
ConsoleConfig: &csconfig.ConsoleConfig{
|
||||
ShareManualDecisions: new(bool),
|
||||
ShareTaintedScenarios: new(bool),
|
||||
ShareCustomScenarios: new(bool),
|
||||
},
|
||||
}
|
||||
apiConfig := csconfig.APICfg{
|
||||
Server: &apiServerConfig,
|
||||
|
@ -76,6 +81,11 @@ func LoadTestConfigForwardedFor() csconfig.Config {
|
|||
DbConfig: &dbconfig,
|
||||
ProfilesPath: "./tests/profiles.yaml",
|
||||
UseForwardedForHeaders: true,
|
||||
ConsoleConfig: &csconfig.ConsoleConfig{
|
||||
ShareManualDecisions: new(bool),
|
||||
ShareTaintedScenarios: new(bool),
|
||||
ShareCustomScenarios: new(bool),
|
||||
},
|
||||
}
|
||||
apiConfig := csconfig.APICfg{
|
||||
Server: &apiServerConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue