with wordpress behind load balancer

vhost file:

        #set_real_ip_from 10.187.187.36;
        set_real_ip_from 10.187.187.10;
        real_ip_header X-Forwarded-For;

        if ($http_x_forwarded_proto != "https") {
           return 301 https://www.plazahotelcasino.com$request_uri;
        }

wp-config.php file:

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
   $_SERVER['HTTPS'] = '1';

if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
   $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}