Compare commits

..
3 Commits
Author SHA1 Message Date
Max Lerebourg 2f2cb60f74 🍱 fix 2022-09-30 01:38:00 +02:00
Max Lerebourg cb16130ca0 🍱 lint 2022-09-30 00:30:37 +02:00
Max Lerebourg d4fce42fd7 🍱 lint 2022-09-30 00:03:09 +02:00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -62,11 +62,11 @@ The recommanded mode for performance is the streaming mode, decisions are update
- Used only in `alone` mode, password for Crowdsec CAPI - Used only in `alone` mode, password for Crowdsec CAPI
- CrowdsecCapiScenarios - CrowdsecCapiScenarios
- []string - []string
- Used only in `alone` mode, login for Crowdsec CAPI - Used only in `alone` mode, scenarios for Crowdsec CAPI
- UpdateIntervalSeconds - UpdateIntervalSeconds
- int64 - int64
- default: 60 - default: 60
- User only in `stream` mode, interval of time between fetching blacklisted IPs from LAPI - User only in `stream` mode, interval between fetching blacklisted IPs from LAPI
- DefaultDecisionSeconds - DefaultDecisionSeconds
- int64 - int64
- default: 60 - default: 60
@@ -226,7 +226,7 @@ docker-compose -f docker-compose.local.yml up -d
### About ### About
Me and [mhanotaux](https://github.com/mhanotaux) have been using traefik since 2020 at [Primadviz](https://primadviz.com). Me and [mathieuHa](https://github.com/mathieuHa) have been using traefik since 2020 at [Primadviz](https://primadviz.com).
We come from web developper and security engineer background and wanted to add the power of a very promesing technology (Crowdsec) into the edge router we love. We come from web developper and security engineer background and wanted to add the power of a very promesing technology (Crowdsec) into the edge router we love.
We initially run into this project: https://github.com/fbonalair/traefik-crowdsec-bouncer We initially run into this project: https://github.com/fbonalair/traefik-crowdsec-bouncer
+1 -1
View File
@@ -87,7 +87,7 @@ type Bouncer struct {
// New creates the crowdsec bouncer plugin. // New creates the crowdsec bouncer plugin.
func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) { func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {
err := validateParams(config) err := validateParams(config)
if (err != nil) { if err != nil {
return nil, err return nil, err
} }