Redirecting the Client to a Different Scheme/PortThe RedirectScheme middleware redirects requests when the request scheme is different from the configured scheme.
When Behind Another Reverse-ProxyWhen there is at least one other reverse-proxy between the client and Traefik, the other reverse-proxy (the last hop) needs to be a trusted one. Otherwise, Traefik would clean up the X-Forwarded headers, and the RedirectScheme middleware would not function as intended.