-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathconfig.schema.json
86 lines (86 loc) · 2.9 KB
/
config.schema.json
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
{
"$id": "config.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Streamr Node configuration format",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"client": {
"type": "object",
"description": "Client configuration",
"additionalProperties": true,
"properties": {
"auth": {
"anyOf": [
{
"type": "object",
"properties": {
"privateKey": {
"type": "string",
"pattern": "^(0x)?[a-fA-F0-9]{64}$"
}
},
"required": ["privateKey"]
},
{
"type": "object",
"properties": {
"ethereum": {
"type": "object"
}
},
"required": ["ethereum"]
}
]
}
},
"default": {}
},
"plugins": {
"type": "object",
"description": "Plugin configurations",
"additionalProperties": true,
"default": {}
},
"httpServer": {
"type": [
"object"
],
"description": "HTTP server configuration",
"default": {},
"additionalProperties": false,
"properties": {
"port": {
"$ref": "definitions.schema.json#/definitions/port",
"description": "Port to start HTTP server on",
"default": 7171
},
"sslCertificate": {
"description": "Files to use for SSL",
"type": "object",
"required": [
"certFileName",
"privateKeyFileName"
],
"additionalProperties": false,
"properties": {
"certFileName": {
"type": "string",
"description": "Path of certificate file"
},
"privateKeyFileName": {
"type": "string",
"description": "Path of private key file"
}
}
}
}
},
"apiAuthentication": {
"$ref": "definitions.schema.json#/definitions/apiAuthentication"
}
}
}