forked from sergejey/majordomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.sample
105 lines (84 loc) · 4.13 KB
/
config.php.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Project Config
*
* @package MajorDoMo
* @author Serge Dzheigalo <[email protected]> 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', "[email protected]");
date_default_timezone_set('UTC');
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
//Define('DISABLE_SIMPLE_DEVICES',1); // disables simple devices behavior
//Define('AUDIO_PLAYER','omxplayer --no-osd'); // audio-player for linux
//Define('ENABLE_FORK',1); // enables process fork (consumes more memory but speeds up some operations)
//Define('PYTHON_PATH','python'); // path to python
//Define('LOCAL_IP','127.0.0.1); // local IP
//Define('BTRACED', 1);
//Define('LOWER_BACKGROUND_PROCESSES',1); // lower number of background processes created
//define('USE_REDIS','127.0.0.1'); // use Redis for caching
//define('LOG_FILES_EXPIRE', 5); // for delete log files
//define('BACKUP_FILES_EXPIRE', 10); // for delete backup files
//define('CACHED_FILES_EXPIRE', 30); // for delete cached files
//define('SETTINGS_ERRORS_KEEP_HISTORY', 1); // for delete errors history