forked from pimatic/pimatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-schema.coffee
76 lines (75 loc) · 2.13 KB
/
config-schema.coffee
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
# #Configuration options
# Lists all configuration options for the pimatic framework itself.
# For an example `config.json` file see the `config_default.json` file.
# Defines a `node-convict` config-schema and exports it.
module.exports =
settings:
locale:
doc: "The default language"
format: ['en', 'de', "es"]
default: "en"
debug:
doc: "Turn on debug checks. Set the logLevel to debug to additional outputs"
format: Boolean
default: false
authentication:
username:
doc: "The Username for http-basic-authentication"
format: String
default: ""
password:
doc: "The Password for http-basic-authentication"
format: String
default: ""
enabled:
doc: "Disable http-basic-authentication"
format: Boolean
default: true
logLevel:
doc: "The log level: debug, info, warn, error"
format: String
default: "info"
httpServer:
enabled:
doc: "Should the http-server be started"
format: Boolean
default: true
port:
doc: "The port of the http-server"
format: "port"
default: 80
httpsServer:
enabled:
doc: "Should the https-server be started"
format: Boolean
default: false
port:
doc: "The port of the https-server"
format: "port"
default: 443
# To generate a privatekey and a certificate run:
#
# openssl genrsa -out privatekey.pem 1024
# openssl req -new -key privatekey.pem -out request.pem
# openssl x509 -req -in request.pem -signkey privatekey.pem -out certificate.pem
#
keyFile:
doc: "Privatekey-file"
format: String
default: "./.cert/privatekey.pem"
certFile:
doc: "Certification-file in pem-format"
format: String
default: "./.cert/certificate.pem"
plugins:
doc: "Array of plugins to load"
format: Array
default: []
devices:
doc: "Array of device definations"
format: Array
default: []
rules:
doc: "Array of rules"
format: Array
default: []