Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: typo fix #84

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ import (
"github.com/crowdsecurity/cs-custom-bouncer/pkg/custom"
)

const (
name = "crowdsec-custom-bouncer"
)
const name = "crowdsec-custom-bouncer"

func bouncerShutdown(custom *custom.CustomBouncer) {
log.Info("shutting down custom-bouncer service")
Expand Down Expand Up @@ -117,7 +115,6 @@ func feedViaStdin(ctx context.Context, custom *custom.CustomBouncer, config *cfg
}

func Execute() error {
var err error
var promServer *http.Server
configPath := flag.String("c", "", "path to crowdsec-custom-bouncer.yaml")
verbose := flag.Bool("v", false, "set verbose mode")
Expand Down
12 changes: 8 additions & 4 deletions config/crowdsec-custom-bouncer.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
bin_path: ${BINARY_PATH}
bin_args: []
feed_via_stdin: false # Invokes binary once and feeds incoming decisions to it's stdin.
total_retries: 0 # number of times to restart binary. relevant if feed_via_stdin=true . Set to -1 for infinite retries.
scenarios_containing: [] # ignore IPs banned for triggering scenarios not containing either of provided word, eg ["ssh", "http"]
scenarios_not_containing: [] # ignore IPs banned for triggering scenarios containing either of provided word
# Invokes binary once and feeds incoming decisions to its stdin.
feed_via_stdin: false
# Number of times to restart the binary. relevant if feed_via_stdin=true. Set to -1 for infinite retries.
total_retries: 0
# Ignore IPs that are banned for triggering scenarios that do not contain any of the provided words, eg ["ssh", "http"]
scenarios_containing: []
# Ignore IPs that are banned for triggering scenarios that contain any of the provided words
scenarios_not_containing: []
origins: []
piddir: /var/run/
update_frequency: 10s
Expand Down