...
$https_port = '443';
// HARDCODE YOUR VARIABLES HERE
$base_path = '/absolute/path/to/modx/root/dir/';
$base_url = '/'; // absolute URL from web server document root
$site_url = 'http://domain.tld' . $base_url; // full url including scheme and hostname
// automatically assign base_path and base_url
if(empty($base_path)||empty($base_url)||$_REQUEST['base_path']||$_REQUEST['base_url']) {
...