forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-settings.ini
225 lines (180 loc) · 6.63 KB
/
default-settings.ini
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
; ------------------------------------------------------------
; Default emoncms settings.ini - DO NOT EDIT!!
;
; 1. copy example.settings.ini and rename to settings.ini
; 2. edit entries in settings.ini as required
; 3. copy settings from below into settings.ini as required
; The items in [] are sections. Any new setting must be
; within the right section in the settings.ini file
; ------------------------------------------------------------
; Set Emoncms installation domain here to secure installation e.g domain = myemoncmsinstall.org
domain = false
; Suggested installation path for symlinked emoncms modules /opt/emoncms/modules
emoncms_dir = "/opt/emoncms"
; Suggested installation path for emonpi and EmonScripts repository:
openenergymonitor_dir = "/opt/openenergymonitor"
; Show all fatal PHP errors
display_errors = true
; Set to true to run database update without logging in
; URL Example: http://localhost/emoncms/admin/db
updatelogin = false
; Mysql database settings
[sql]
server = "localhost"
database = "emoncms"
username = "_DB_USER_"
password = "_DB_PASSWORD_"
port = 3306
; Skip database setup test - set to false once database has been setup.
dbtest = true
; Redis
[redis]
enabled = false
host = 'localhost'
port = 6379
auth = ''
dbnum = ''
; Only a prefix of 'emoncms' or '' will be recognised by service-runner
prefix = 'emoncms'
; MQTT
[mqtt]
; The 'subscriber' topic format is rx/* - where * is the emoncms input node number.
; The 'publisher' topic format is user selectable from the 'Publish to MQTT' input process, for example power/solar
; Activate MQTT by changing to true
enabled = false
host = 'localhost'
port = 1883
user = ''
password = ''
basetopic = 'emon'
client_id = 'emoncms'
userid = 1
multiuser = false
; secure MQTT parameters
; capath must be defined to enable SSL usage.
; This is the only setting required to connect to a SSL mqtt broker.
;capath = '/etc/ssl/certs'
; The following settigs are related to your CLIENT certificate, if your broker requires client authentication.
; certpath must point to your client certificate
;certpath = '/etc/letsencrypt/live/yoursite/fullkey.pem'
; keypath must point to your client private key
;keypath = '/etc/letsencrypt/live/yoursite/privatekey.pem'
; keypw is the client private key password.
; do not define if your private key is not password protected
;keypw = ''
; Input
[input]
; Max number of allowed different inputs per user. For limiting garbage rf data
max_node_id_limit = 32
; Feed settings
[feed]
; Supported engines. List engines by id to disable feed creation.
; Existing feeds with a hidden engine still work
; MYSQL:0, MYSQLMEMORY:8, PHPTIMESERIES:2, PHPFINA:5, CASSANDRA:10
engines_hidden = [0,8,10]
; Redis Low-write mode
; If enabled is true, requires redis enabled and feedwriter service running
redisbuffer[enabled] = false
; Number of seconds to wait before write buffer to disk - user selectable option
redisbuffer[sleep] = 60
; Engines working folder. Default is /var/lib/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
phpfina[datadir] = '/var/lib/phpfina/'
phptimeseries[datadir] = '/var/lib/phptimeseries/'
cassandra[keyspace] = 'emoncms'
; experimental feature for virtual feeds average, default is true, set to false to activate average agregation with all data points, will be slower
virtualfeed[data_sampling] = false
mysqltimeseries[data_sampling] = false
; Datapoint limit. Increasing this effects system performance but allows for more data points to be read from one api call
max_datapoints = 8928
; CSV export options for the number of decimal_places, decimal_place_separator
; and field_separator
; The thousands separator is not used (specified as "nothing")
; NOTE: don't make $csv_decimal_place_separator == $csv_field_separator
; Adjust as appropriate for your location
; number of decimal places
csv_decimal_places = 2
; decimal place separator
csv_decimal_place_separator = "."
; field separator
csv_field_separator = ","
; Max csv download size in MB
csv_downloadlimit_mb = 25
; User Interface settings
[interface]
; Applicaton name
appname = "emoncms"
; gettext translations are found under each Module's locale directory
default_language = 'en_GB'
; Theme location (folder located under Theme/, and must have the same structure as the basic one)
theme = "basic"
; Theme colour options: "standard", "blue", "sun"
themecolor = "blue"
; Favicon filenme in Theme/$theme
favicon = "favicon.png"
; Main menu collapses on lower screen widths
menucollapses = false
; Show menu titles
show_menu_titles = true
; 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 = "feed"
default_action_auth = "list"
; Default feed viewer: "vis/auto?feedid=" or "graph/" - requires module https://github.com/emoncms/graph
feedviewpath = "graph/"
; Enable multi user emoncms.
; If set to false, emoncms will automatically remove the register form and
; ability to create further users after the first user has been created
enable_multi_user = false
; Enable remember me feature
enable_rememberme = true
; Allow user to reset password
enable_password_reset = false
; If installed on Emonpi, allow admin menu tools
enable_admin_ui = false
; Show update section in admin
enable_update_ui = true
; Email verification
email_verification = false
[public_profile]
; Public profile functionality
; Allows http:; yourdomain.com/[username]/[dash alias] or ?id=[dash id]
; Alternative to http:; yourdomain.com/dashboard/view?id=[dash id]
; Add optional '&embed=1' in the end to remove header and footer
enabled = true
controller = "dashboard"
action = "view"
; (OPTIONAL) Email SMTP, used for password reset or other email functions
; Requires SwiftMailer v5.4.8, To install:
; git -C /opt/emoncms/modules clone -b 'v5.4.8' --single-branch https://github.com/swiftmailer/swiftmailer.git
[smtp]
; Email address to email proccessed input values
default_emailto = ''
host = ""
; 25, 465, 587
port = ""
from_email = ''
from_name = ''
; sendmail, when enabled we use local email server instead smtp relay
sendmail = false
; Comment lines below that dont apply
; ssl, tls
encryption = ""
username = ""
password = ""
; Log file configuration
[log]
enabled = true
; On windows or shared hosting you will likely need to specify a
; different logfile directory
location = '/var/log/emoncms'
; Log Level: 1=INFO, 2=WARN, 3=ERROR
level = 2
[device]
enable_UDP_broadcast = true
[cydynni]
[postprocess]
cron_enabled = 0