-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.schema.json
103 lines (101 loc) · 3.31 KB
/
server.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$schema": "http://json-schema.org/schema#",
"title": "ROK4 Server configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"threads": {
"type": "integer",
"description": "Threads count to treat requests"
},
"port": {
"type": "string",
"description": "Port listened"
},
"backlog": {
"type": "integer",
"description": "Socket's backlog size"
},
"enabled": {
"type": "boolean",
"description": "Broadcast activation when all configuration is loaded",
"default": true
},
"logger": {
"type": "object",
"description": "Logger configuration",
"additionalProperties": false,
"properties": {
"output": {
"type": "string",
"description": "Output type",
"enum": [
"standard_output",
"static_file",
"rolling_file"
]
},
"level": {
"type": "string",
"description": "Log level",
"enum": [
"fatal",
"error",
"warn",
"info",
"debug"
]
},
"file_prefix": {
"type": "string",
"description": "Prefix for log files"
},
"file_period": {
"type": "integer",
"description": "Time limit for a log file (in seconds)"
}
}
},
"cache": {
"type": "object",
"description": "Slab indices cache configuration",
"additionalProperties": false,
"properties": {
"size": {
"type": "integer",
"minimum": 1,
"description": "Max items count"
},
"validity": {
"type": "integer",
"minimum": 1,
"description": "Time to live for an item (in minutes)"
}
}
},
"configurations": {
"type": "object",
"description": "Content configuration",
"additionalProperties": false,
"required": ["services", "styles", "tile_matrix_sets"],
"properties": {
"services": {
"type": "string",
"description": "File path to services JSON configuration file"
},
"layers": {
"type": "string",
"description": "Path (file or object) to layers' descriptor list"
},
"styles": {
"type": "string",
"description": "Path (file or object) to styles' directory"
},
"tile_matrix_sets": {
"type": "string",
"description": "Path (file or object) to TMS' directory"
}
}
}
}
}