Hi all,
I would like to add customerequestheader , but header value should be host of the each http request , so that i can route the request based on this header value to respective namespace in backend .
for example if am accessing . https://traefik.example.com , My customerequestheader value should also be traefik.example.com . This is for the CI, where my hostnames keep changing with namespace, according hostname i have to route to the respective backend namespace
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: add-header
spec:
headers:
customRequestHeaders:
x-request-downstream: "#Here i want hostname from client's request "
How can i achieve that ,Can someone please help me .