mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
✨ Add Custom header usage to find the user IP
This commit is contained in:
@@ -74,6 +74,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
|
||||
|
||||
@@ -123,6 +127,7 @@ 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user