14 lines
341 B
YAML
14 lines
341 B
YAML
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: cloudflare-ip-header
|
|
namespace: traefik
|
|
spec:
|
|
headers:
|
|
customRequestHeaders:
|
|
# This doesn't work
|
|
# TODO: Possibly use a plugin to rewrite this header? Or confirm whether
|
|
# cloudflare sends XFF header
|
|
X-Forwarded-For: "{Cf-Connecting-Ip}"
|