forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.settings.ini
74 lines (64 loc) · 2.16 KB
/
example.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
; -----------------------------------------------------
; Example emoncms settings.ini file
;
; default-settings.ini contains the default settings.
;
; Settings entered here override the default settings.
; Enter only the settings you wish to customise here.
;
; The following is a barebones example, copy across
; other settings from default-settings.ini as required
; Maintain the section structure (items in [])
; -----------------------------------------------------
; MYSQL Database settings
[sql]
server = "localhost"
database = "emoncms"
username = "emoncms"
password = "password"
; Skip database setup test - set to false once database has been setup.
dbtest = true
; Redis Database (used as a cache for improved performance)
[redis]
enabled = true
; MQTT Used with emoncms_mqtt service to send and receive data over MQTT
; If MQTT settings are changed reboot or execute "sudo systemctl restart emoncms_mqtt.service"
[mqtt]
enabled = false
user = 'username'
password = 'password'
; Feed engine settings
[feed]
; Supported engines. List engines by id to disable feed creation.
; Existing feeds with a hidden engine still work
; If using emoncms in low-write mode, ensure that PHPFIWA is disabled
; Recommended emoncms feed engines are PHPFINA and PHPTIMESERIES
; MYSQL:0, MYSQLMEMORY:8, PHPTIMESERIES:2, PHPFINA:5, PHPFIWA:6, CASSANDRA:10
engines_hidden = [0,6,10]
; Buffer data to be written to
redisbuffer[enabled] = false
phpfina[datadir] = '/var/opt/emoncms/phpfina/'
phptimeseries[datadir] = '/var/opt/emoncms/phptimeseries/'
; Enable the graph module if you have it installed
[interface]
feedviewpath = "graph/"
[public_profile]
; Emailer
; 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 = 'root@localhost'
;host = "smtp.gmail.com"
; 25, 465, 587
;port = "465"
;from_email = '[email protected]'
;from_name = 'EmonCMS'
; Comment lines below that dont apply
; ssl, tls
;encryption = "ssl"
;username = "[email protected]"
;password = "yourpassword"
[log]
; Log Level: 1=INFO, 2=WARN, 3=ERROR
level = 2