Try to use configuration from main.php before using hardcoded settings.