Traefik plugin to handle traffic coming from Cloudflare.
X-Forwarded-For
header with the user IPKey | Type | Default | Description |
---|---|---|---|
trustedCIDRs | []string | [] | Requests coming from a source not matching any of these CIDRs will be terminated with a 403. If empty, it is populated with Cloudflare's CIDRs. |
refreshInterval | time.Duration | 24h | When trustedCIDRs is empty, Cloudflare's CIDRs will be refreshed after this duration. Using a value of 0 seconds disables the refresh. |
overwriteForwardedFor | bool | true | When true , the request's X-Forwarded-For header is replaced by the content of the CF-Connecting-IP header. |
experimental:plugins:cloudflare:moduleName: github.com/Desuuuu/traefik-cloudflare-pluginversion: v1.0.0
http:middlewares:cloudflare:plugin:cloudflare:trustedCIDRs: []overwriteForwardedFor: truerouters:foo-router:rule: Path(`/foo`)service: foo-serviceentryPoints:- webmiddlewares:- cloudflare