Here is some code you can add to your wp-config.php temporarily to test the $_SERVER values to see if they are setup correctly. Add this code to wp-condig.php and then navigate to https:// yoursite.com/?test=1. https://www.paidmembershipspro.com/configuring-wordpress-always-use-httpsssl/
//navigate to /?test=1 to view the $_SERVER variables
//be sure to remove this code when finished
if(!empty($_REQUEST['test'])) {
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
exit;
}