Skip to content

Commit

Permalink
allow to specify 'scopes' in the configuration. By default bouncer wa…
Browse files Browse the repository at this point in the history
…s restricting itself to IP scoped decisions (#93)
  • Loading branch information
buixor committed Mar 20, 2024
1 parent a7871e6 commit 83ff2b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func Execute() error {
ScenariosContaining: strings.Join(config.CrowdsecConfig.IncludeScenariosContaining, ","),
ScenariosNotContaining: strings.Join(config.CrowdsecConfig.ExcludeScenariosContaining, ","),
Origins: strings.Join(config.CrowdsecConfig.OnlyIncludeDecisionsFrom, ","),
Scopes: strings.Join(config.CrowdsecConfig.Scopes, ","),
},
UserAgent: "crowdsec-blocklist-mirror/" + version.String(),
CertPath: config.CrowdsecConfig.CertPath,
Expand Down
1 change: 1 addition & 0 deletions pkg/cfg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type CrowdsecConfig struct {
IncludeScenariosContaining []string `yaml:"include_scenarios_containing"`
ExcludeScenariosContaining []string `yaml:"exclude_scenarios_containing"`
OnlyIncludeDecisionsFrom []string `yaml:"only_include_decisions_from"`
Scopes []string `yaml:"scopes,omitempty"`
}

type BlockListConfig struct {
Expand Down

0 comments on commit 83ff2b5

Please sign in to comment.