forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.settings.php
More file actions
192 lines (155 loc) · 5.84 KB
/
default.settings.php
File metadata and controls
192 lines (155 loc) · 5.84 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?php
/*
redirect to index.php when calling an existing file, salme as non existing file
*/
if (!defined('EMONCMS_EXEC')){
// works with APACHE
$redir = $_SERVER['SERVER_NAME'].preg_replace(REGEX_SERVER_NAME, '/index.php', $_SERVER['REQUEST_URI']);
header ('Location:'.$redir);
}
// no direct access
defined('EMONCMS_EXEC') or die('Restricted access');
/*
Database connection settings
*/
$username = "_DB_USER_";
$password = "_DB_PASSWORD_";
$server = "localhost";
$database = "emoncms";
$redis_enabled = true;
// Enable this to try out the experimental MQTT Features:
// - updated to feeds are published to topic: emoncms/feed/feedid
$mqtt_enabled = false;
$feddatadir="data".DS."engine".DS;
$feed_settings = array(
'enable_mysql_all'=>true,
'timestore'=>array(
'adminkey'=>"_TS_ADMINKEY_"
),
'graphite'=>array(
'port'=>0,
'host'=>0
),
// The default data directory is /var/lib/phpfiwa,phpfina,phptimeseries on windows or shared hosting you will likely need to specify a different data directory.
// Make sure that emoncms has write permission's to the datadirectory folders
'phpfiwa'=>array(
'datadir'=>$feddatadir."phpfiwa"
),
'phpfina'=>array(
'datadir'=>$feddatadir."phpfina"
),
'phptimeseries'=>array(
'datadir'=>$feddatadir."phptimeseries"
),
'phptimestore'=>array(
'datadir'=>$feddatadir.'phptimestore'
)
);
// (OPTIONAL) Used by password reset feature
$smtp_email_settings = array(
'host'=>"_SMTP_HOST_",
'username'=>"_SMTP_USER_",
'password'=>"_SMTP_PASSWORD_",
'from'=>array('_SMTP_EMAIL_ADDR_' => '_SMTP_EMAIL_NAME_')
);
/** set the PHPMailer parameters
** PHPMailer is to be found here : https://github.com/PHPMailer/PHPMailer
** avoid to use accentued characters in real name, it will not be handled has UTF-8
** SWIFTMailer did not send any mail!
gmail example:
$PHPMailer_settings = array(
'host'=>'smtp.gmail.com',
'port'=> '587',
'auth'=> true,
'encryption' =>'tls',
'username'=>'gmailusername',
'password'=>'gmailpassword',
'from'=>'sent from or reply address',
'fromname'=>'fromrealname',
'tobcc'=>'fill it if you want to have mail content feedbackfeedback'
);
**/
$PHPMailer_settings = array(
'host'=>'smtp.gmail.com',
'port'=> '587',
'auth'=> true,
'encryption' =>'tls',
'username'=>'gmailusername',
'password'=>'gmailpassword',
'from'=>'sent from or reply address',
'fromname'=>'fromrealname',
'tobcc'=>'fill it if you want to have mail content feedbackfeedback'
);
// To enable / disable password reset set to either true / false
// default value of " _ENABLE_PASSWORD_RESET_ " required for .deb only
// uncomment 1 of the 2 following lines & comment out the 3rd line.
// $enable_password_reset = true;
// $enable_password_reset = false;
$enable_password_reset = false;
// Checks for limiting garbage data?
$max_node_id_limit = 32;
/*
Default router settings - in absence of stated path
*/
// Default controller and action if none are specified and user is anonymous
$default_controller = "user";
$default_action = "login";
// Default controller and action if none are specified and user is logged in
$default_controller_auth = "user";
$default_action_auth = "view";
// Public profile functionality
$public_profile_enabled = TRUE;
$public_profile_controller = "dashboard";
$public_profile_action = "view";
/*
Other
*/
// Theme location
$theme = "basic";
// Error processing
$display_errors = TRUE;
// Allow user register in emoncms
$allowusersregister = TRUE;
// Enable remember me feature - needs more testing
$enable_rememberme = TRUE;
// Skip database setup test - set to false once database has been setup.
$dbtest = TRUE;
// Log4PHP configuration
$log4php_configPath = ROOT.'emoncms_log4j.xml';
// interfaces behavior when running with multi organisations and multi users
$behavior=array(
'multiorg'=>true,
'userlist_expanded'=>FALSE,
'usergoup'=> "letter",
//usergroup may be '', than no groups are made, it is used in users list view
'userletter'=> "UCASE(LEFT(username,1)) as letter",
//'userletter'=> "1 as letter",
//userletter MUST be present but may be a constant, the letter field is used in ORDER BY directive
//'userletter'=> "UCASE(LEFT(email,1)) as letter",
// grouping by email first letter is an other option
'orglist_expanded'=>FALSE,
'orggroup'=> "letter",
//orggroup may be '', than no groups are made, it is used in organisations list view
'orgletter'=> "ucase(LEFT(orgname,1)) as letter",
//orgletter MUST be present but may be a constant
// see userletter above and apply same rules, on countries for example
//'orgletter'=> "country as letter" will group organisations by countries
'inputgroup'=> "nodeid",
'inputinterval'=> 5000,
'inputlistexpanded'=>TRUE,
'feedgroup'=> "tag",
'feedinterval'=> 5000,
'feedlistexpanded'=>1,
'dashlist_expanded'=>true,
'dashgroup'=> "letter",
//orggroup may be '', than no groups are made, it is used in organisations list view
'dashletter'=> "ucase(LEFT(name,1)) as letter",
);
$csv_parameters= array(
'csvdownloadlimit_mb' => 10,
'csv_field_separator'=>";",
'csv_decimal_place_separator'=>",",
'csv_thousandsepar_separator'=>"",
'csv_dateformat'=>"Y-m-d",
'csv_timeformat'=>"H:i:s"
);