I have a wordpress docker which is being used behind an ngnix proxy docker. I have set these settings in wp- config.php:
if($_SERVER[\'HTTP_X_FORWARDED_PROTO\