Shopware 6 ist ja eine Symfony Applikation, entsprechend ist da auch nichts Shopware spezifisches notwendig.
https://symfony.com/doc/current/deployment/proxies.html
Die TrustedProxies kannst du via environment definieren.
https://github.com/shopware/development/blob/master/public/index.php#L30