Hi there,
I'd like to know if have any change to specify what header I'll use to control my ipwhitelist. Because I'm behind a company proxy. So, the real customer IP comes on proxy_add_x_forwarded_for. I'm trying to change the official IP, as the example below.
middlewares:
my-ipwhitelist:
ipWhiteList:
sourceRange:
- "177.x.x.x"
- "64.x.x.x"
my-headers:
headers:
customRequestHeaders:
X-Forwarded-For: "$proxy_add_x_forwarded_for"
routers:
api:
rule: Host(`traefik-dashboard.local`)
service: api@internal
middlewares:
- my-headers
- my-ipwhitelist
entrypoints:
- http