Wordpress behind proxy with TLS/SSL termination

If your WordPress is running behind a proxy which terminates the remote ssl connections, the following lines are needed in your wp-config.php file:

define(‘FORCE_SSL_ADMIN’, true);
define(‘FORCE_SSL_LOGIN’, true);
$_SERVER[“HTTPS”] = “on”;