Symfony app not getting HTTPS traffic behind Traefik and Nginx proxy
I had a same problem with redirect from htts to http, when I moved project to kubernetes with Ingress.I set trusted proxies to request. And it's helped.
https://symfony.com/doc/4.4/deployment/proxies.html
// public/index.php// ...Request::setTrustedProxies( // trust *all* requests (the 'REMOTE_ADDR' string is replaced at // run time by $_SERVER['REMOTE_ADDR']) ['127.0.0.1', 'REMOTE_ADDR'], // if you're using ELB, otherwise use a constant from above Request::HEADER_X_FORWARDED_AWS_ELB);