We have an azure Application Gateway with firewall which takes the incoming request and redirects it to Traefik as ingress to the kubernetes cluster.
The problem that I have is that the host name gets overwritten by the internal host for Traefik, so any redirects etc. are for an internal URL not reachable from outside.
For example "service-a.example.com" is picked up by Application Gateway and sends the request to "service-a.aks.example.com". This page then redirects to a login page, which returns to the client as "service-a.aks.example.com/login" instead of "service-a.example.com/login"
What configuration do I need in order to pass on the original host name?
The current configuration for Traefik is:
traefik.http.routers.service.entrypoints=websecure,
traefik.http.routers.service.rule=Host(service-a.aks.example.com
)