Merge remote-tracking branch 'origin' into 20-implement-shared-cache-with-an-external-redis-as-an-option

This commit is contained in:
MathieuHa
2022-10-16 22:07:01 +02:00
7 changed files with 200 additions and 108 deletions
+9 -1
View File
@@ -49,6 +49,9 @@ At each start of synchronisation, the middleware will wait a random number of se
- Enabled
- bool
- enable the plugin
- LogLevel
- string
- default: `INFO`, expected value are: `INFO`, `DEBUG`
- CrowdsecMode
- string
- default: `live`, expected value are: `none`, `live`, `stream`
@@ -74,6 +77,10 @@ At each start of synchronisation, the middleware will wait a random number of se
- []string
- default: []
- List of IPs of trusted Proxies that are in front of traefik (ex: Cloudflare)
- ForwardedHeadersCustomName
- string
- default: X-Forwarded-For
- Name of the header where the real IP of the client should be retrieved
### Configuration
@@ -116,13 +123,14 @@ http:
enabled: false
updateIntervalSeconds: 60
defaultDecisionSeconds: 60
crowdsecMode: stream
crowdsecMode: live
crowdsecLapiKey: privateKey
crowdsecLapiHost: crowdsec:8080
crowdsecLapiScheme: http
forwardedHeadersTrustedIPs:
- 10.0.10.23/32
- 10.0.20.0/24
forwardedHeadersCustomName: X-Custom-Header
```
These are the default values of the plugin except for LapiKey.