Skip to content
Permalink
Browse files

Update config.php.sample

DIR_MODULES, DIR_TEMPLATES updated for sample config file
  • Loading branch information...
sergejey committed Apr 10, 2019
1 parent c14bfbe commit c635c6d93cf17644fe70028a82281b808c1d89ba
Showing with 96 additions and 103 deletions.
  1. +96 −103 config.php.sample
@@ -1,104 +1,97 @@
<?php
/**
* Project Config
*
* @package MajorDoMo
* @author Serge Dzheigalo <jey@tut.by> http://smartliving.ru/
* @version 1.1
*/

Define('DB_HOST', 'localhost');
Define('DB_NAME', 'db_terminal');
Define('DB_USER', 'root');
Define('DB_PASSWORD', '');

Define('DIR_TEMPLATES', "./templates/");
Define('DIR_MODULES', "./modules/");
Define('DEBUG_MODE', 1);
Define('UPDATES_REPOSITORY_NAME', 'smarthome');

Define('PROJECT_TITLE', 'MajordomoSL');
Define('PROJECT_BUGTRACK', "bugtrack@smartliving.ru");

date_default_timezone_set('UTC');

if (isset($_ENV["COMPUTERNAME"]) && $_ENV["COMPUTERNAME"])
{
Define('COMPUTER_NAME', strtolower($_ENV["COMPUTERNAME"]));
}
else
{
// Your computer name (optional)
Define('COMPUTER_NAME', 'mycomp');
}

Define('DOC_ROOT', dirname(__FILE__)); // Your htdocs location (should be detected automatically)

Define('SERVER_ROOT', '/var/www');
Define('PATH_TO_PHP', 'php');
Define('PATH_TO_MYSQLDUMP', "mysqldump");


if (isset($_ENV["S2G_BASE_URL"]) && $_ENV["S2G_BASE_URL"])
{
Define('BASE_URL', $_ENV["S2G_BASE_URL"]);
}
else
{
// Your base URL:port (!!!)
Define('BASE_URL', 'http://127.0.0.1:80');
}

Define('ROOT', DOC_ROOT."/");
Define('ROOTHTML', "/");
Define('PROJECT_DOMAIN', isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : php_uname("n"));

// 1-wire OWFS server
//Define('ONEWIRE_SERVER', 'tcp://localhost:8234');

/*
Define('HOME_NETWORK', '192.168.0.*'); // home network (optional)
Define('EXT_ACCESS_USERNAME', 'user'); // access details for external network (internet)
Define('EXT_ACCESS_PASSWORD', 'password');
*/

/// (Optional)
//Define('DROPBOX_SHOPPING_LIST', 'c:/data/dropbox/list.txt');

$restart_threads=array(
'cycle_execs.php',
'cycle_main.php',
'cycle_ping.php',
'cycle_scheduler.php',
'cycle_states.php',
'cycle_webvars.php');

//Define('USE_PROXY', '127.0.0.1:8888'); //PROXY SERVER DETAILS (optional)
//Define('USE_PROXY_AUTH', 'user:password'); //PROXY SERVER AUTH (optional)

//Define('HISTORY_NO_OPTIMIZE', 1);

Define('GIT_URL', 'https://github.com/sergejey/majordomo/');
Define('MASTER_UPDATE_URL', GIT_URL.'archive/master.tar.gz'); // master update URL (https://github.com/sergejey/majordomo/archive/alpha.tar.gz)

$aditional_git_urls = array(
//'https://github.com/AKEB/majordomo/archive/alpha.tar.gz' => 'AKEB/alpha',
//'https://github.com/AKEB/majordomo/archive/master.tar.gz' => 'AKEB/master',
);


//Define('WAIT_FOR_MAIN_CYCLE', 1);
//Define('TRACK_DATA_CHANGES', 1); // TRACK EVENTS
//Define('TRACK_DATA_CHANGES_IGNORE', 'cycle_, clockchime, uptime, WSClientsTotal'); // IGNORE

Define('GETURL_WARNING_TIMEOUT',5); // TIMEOUT LIMIT FOR getURL function warning

//Define('SEPARATE_HISTORY_STORAGE',1); // STORE HISTORY DATA IN DIFFERENT TABLES
//Define('LOG_DIRECTORY', 'c:/temp'); // PATH TO STORE LOGS
//Define('LOG_MAX_SIZE', 2); // MAXIMUM LOG FILE SIZE, MB
//Define('LOG_CYCLES',1); // Save working cycle log (or send to /dev/null if not defined)
//Define('PATH_TO_FFMPEG','avconv');
//Define('DISABLE_PANEL_ACCELERATION', 1);
//Define('VERBOSE_LOG',1); // STORE SYSTEM ACTIVITY IN VERBOSE LOG
//Define('VERBOSE_LOG_IGNORE','.checkstate, ThisComputer.uptime'); // IGNORE SOME DATA
<?php
/**
* Project Config
*
* @package MajorDoMo
* @author Serge Dzheigalo <jey@tut.by> http://smartliving.ru/
* @version 1.1
*/

Define('DB_HOST', 'localhost');
Define('DB_NAME', 'db_terminal');
Define('DB_USER', 'root');
Define('DB_PASSWORD', '');

Define('DEBUG_MODE', 1);
Define('UPDATES_REPOSITORY_NAME', 'smarthome');

Define('PROJECT_TITLE', 'MajordomoSL');
Define('PROJECT_BUGTRACK', "bugtrack@smartliving.ru");

date_default_timezone_set('UTC');

if (isset($_ENV["COMPUTERNAME"]) && $_ENV["COMPUTERNAME"])
{
Define('COMPUTER_NAME', strtolower($_ENV["COMPUTERNAME"]));
}
else
{
// Your computer name (optional)
Define('COMPUTER_NAME', 'mycomp');
}

Define('DOC_ROOT', dirname(__FILE__)); // Your htdocs location (should be detected automatically)

Define('SERVER_ROOT', '/var/www');
Define('PATH_TO_PHP', 'php');
Define('PATH_TO_MYSQLDUMP', "mysqldump");


if (isset($_ENV["S2G_BASE_URL"]) && $_ENV["S2G_BASE_URL"])
{
Define('BASE_URL', $_ENV["S2G_BASE_URL"]);
}
else
{
// Your base URL:port (!!!)
Define('BASE_URL', 'http://127.0.0.1:80');
}

Define('ROOT', DOC_ROOT."/");
Define('DIR_TEMPLATES', ROOT."templates/");
Define('DIR_MODULES', ROOT."modules/");

Define('ROOTHTML', "/");
Define('PROJECT_DOMAIN', isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : php_uname("n"));

// 1-wire OWFS server
//Define('ONEWIRE_SERVER', 'tcp://localhost:8234');

/*
Define('HOME_NETWORK', '192.168.0.*'); // home network (optional)
Define('EXT_ACCESS_USERNAME', 'user'); // access details for external network (internet)
Define('EXT_ACCESS_PASSWORD', 'password');
*/

/// (Optional)
//Define('DROPBOX_SHOPPING_LIST', 'c:/data/dropbox/list.txt');

//Define('USE_PROXY', '127.0.0.1:8888'); //PROXY SERVER DETAILS (optional)
//Define('USE_PROXY_AUTH', 'user:password'); //PROXY SERVER AUTH (optional)

//Define('HISTORY_NO_OPTIMIZE', 1);

Define('GIT_URL', 'https://github.com/sergejey/majordomo/');
Define('MASTER_UPDATE_URL', GIT_URL.'archive/master.tar.gz'); // master update URL (https://github.com/sergejey/majordomo/archive/alpha.tar.gz)

$aditional_git_urls = array(
//'https://github.com/AKEB/majordomo/archive/alpha.tar.gz' => 'AKEB/alpha',
//'https://github.com/AKEB/majordomo/archive/master.tar.gz' => 'AKEB/master',
);


//Define('WAIT_FOR_MAIN_CYCLE', 1);
//Define('TRACK_DATA_CHANGES', 1); // TRACK EVENTS
//Define('TRACK_DATA_CHANGES_IGNORE', 'cycle_, clockchime, uptime, WSClientsTotal'); // IGNORE

Define('GETURL_WARNING_TIMEOUT',5); // TIMEOUT LIMIT FOR getURL function warning

//Define('SEPARATE_HISTORY_STORAGE',1); // STORE HISTORY DATA IN DIFFERENT TABLES
//Define('LOG_DIRECTORY', 'c:/temp'); // PATH TO STORE LOGS
//Define('LOG_MAX_SIZE', 2); // MAXIMUM LOG FILE SIZE, MB
//Define('LOG_CYCLES',1); // Save working cycle log (or send to /dev/null if not defined)
//Define('PATH_TO_FFMPEG','avconv');
//Define('DISABLE_PANEL_ACCELERATION', 1);
//Define('VERBOSE_LOG',1); // STORE SYSTEM ACTIVITY IN VERBOSE LOG
//Define('VERBOSE_LOG_IGNORE','.checkstate, ThisComputer.uptime'); // IGNORE SOME DATA
//Define('DISABLE_SIMPLE_DEVICES',1); // disables simple devices behavior

0 comments on commit c635c6d

Please sign in to comment.
You can’t perform that action at this time.