Main Configuration

SkyMake main configuration file's template looks like this. It has commented areas for you to be able to switch between multidomain and single domain installation.

<?php
/*
* SkyMake 4 Configuration File
* This file contains settings for the installation
* other than the database settings.
* Here is a template for this file.
* Please setup your LiveClass server and MultiConf
* If you don't mind using public jitsi meet servers
* You don't need to change the url.
* After configuration is over,
* Please rename this file to "SkyMakeConfiguration.php"
* (Remove .template extension from the end.)
*/
define("SkyMakeOnConfigConnect", "CONFCONNOK");
$skymakeconfig = array();
//begin editing for your own settings

/*
    //Uncomment this if you want to use the install with a single domain.
    define("ALLOW_MULTICONF",false);
    $skymakeconfig["default"]["sflc_host"] = "meet.jit.si";
*/
/*
    //Uncomment this if you want  to use multidb
    //Note: Comment the default part before doing this
    //Note: Replace parts between ### with your own data.
    define("ALLOW_MULTICONF",true);
    //Replace the following part with this when you enable multidb
    $dbconfig["###yourmaindomainwithouttldordot###"]["sflc_host"] = "###meetserver###";
    Copy this template for every multidb subdomin
    $dbconfig["###yoursubdomain###"]["sflc_host"] = "###meetserver###";
*/

//stop editing
if(!defined("ALLOW_MULTICONF")){
    include_once(__DIR__."/../SkyMakeFunctionSet/Mission-Critical-Functions/SMC.php");
    SMC::displayCrash("There is a problem with this install. It is configured improperly. Please check your configuration. ERROR_CODE: MULTICONF_NO_CONF","Failed to Load this SkyMake Namespace","There was a issue in the SkyMake Configuration file.");
    die();
}
if(ALLOW_MULTICONF){
    $url = $_SERVER["HTTP_HOST"];
    $parsedUrl = parse_url($url);
    $host = explode('.', $parsedUrl['host']);
    $subdomain = $host[0];
    if(isset($skymakeconfig[$subdomain]["sflc_host"])){
        define("SFLC_HOST",$skymakeconfig[$subdomain]["sflc_host"]);
    } else {
        include_once(__DIR__."/../SkyMakeFunctionSet/Mission-Critical-Functions/SMC.php");
        SMC::displayCrash("There is a problem with this Namespace. It either does not exist or configured improperly. Please check your configuration. ERROR_CODE: MULTIDB_UNKNOWN_DOMAIN","Failed to Load this Namespace","There was a issue in the SkyMake Configuration file.");
        die();
    }
} else {
        define("SFLC_HOST", $skymakeconfig["default"]["sflc_host"]);
}


// That's all. Now stop.
include "SkyMakeFunctionSet/includes.php";
include "SkyfallenCodeLib/UpdatesConsoleConnector.php";

define("UPDATES_PROVIDER_URL","https://swupdate.theskyfallen.com");
define("UPDATES_PROVIDER_APP_ID","541a2fb0429491f158f100ce7dcb0b86");
define("UPDATE_SEED","Stable");

if(getenv('SKYMAKE_DEVENV') == "YES"){
   define("DEVENV",true);
} else {
    define("DEVENV",false);
}
include_once "updater.php";
include "thisversion.php";

In here, please notice the comments that say start & stop editing.

These are used to tell you that the rest of the file is real application code, so please do not touch these parts.

Multi Config Installation

For multi config installation, you need to uncomment (remove '/*' and '*/') from the beginning of the multiconfig part which looks like this.

/*
    //Uncomment this if you want  to use multidb
    //Note: Comment the default part before doing this
    //Note: Replace parts between ### with your own data.
    define("ALLOW_MULTICONF",true);
    //Replace the following part with this when you enable multidb
    $dbconfig["###yourmaindomainwithouttldordot###"]["sflc_host"] = "###meetserver###";
    Copy this template for every multidb subdomin
    $dbconfig["###yoursubdomain###"]["sflc_host"] = "###meetserver###";
*/

For each subdomain you have, you need to define separate config options, but before all, you need to set the main domain.

Notice the part that says,

###yourmaindomainwithouttldordot###

This means, if your main domain is, for example, theskyfallen.com, you should only type it as "theskyfallen".

If your main domain is a subdomain, you should only type the part before the first dot. For example, 'app' for 'app.deducated.com' or 'skymake' for 'skymake.subdomain.yourdomain.com'.

Then, you need to copy this line for each subdomain you would like to make a configuration for.

$dbconfig["###yoursubdomain###"]["sflc_host"] = "###meetserver###";

Replace '###yoursubdomain###' with your subdomain. Make sure all of your options are on a new line.

Do not remove the quotes from the code snippets, this will cause a PHP Error.

Single Domain Configuration

For non multi config installation, you need to uncomment (remove '/*' and '*/') from the beginning of the non multiconfig part which looks like this.

/*
    //Uncomment this if you want to use the install with a single domain.
    define("ALLOW_MULTICONF",false);
    $skymakeconfig["default"]["sflc_host"] = "meet.jit.si";
*/

Set your values and leave it as is.

After the configuration is complete, rename this file to SkyMakeConfiguration.php (remove .template from the end)

Last updated