-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.json
57 lines (57 loc) · 1.81 KB
/
config.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
{
"$id": "config",
"description": "html-to-pdf service configuration",
"type": "object",
"required": ["pdfPrinter"],
"properties": {
"pdfPrinter": {
"description": "options for configuring PDF rendering endpoints",
"type": "object",
"required": ["templates", "retryOptions"],
"properties": {
"templates": {
"type": "string",
"minLength": 1,
"description": "directory where templates reside"
},
"retryOptions": {
"type": "object",
"description": "retry options in case parts of services fail, more - https://github.com/demmer/bluebird-retry",
"properties": {
"interval": {
"type": "number",
"description": "initial wait time between attempts in milliseconds",
"default": 1000,
"minimum": 0
},
"timeout": {
"type": "number",
"description": "total time to wait for the operation to succeed in milliseconds",
"default": 30000
},
"max_tries": {
"type": "number",
"description": "maximum number of attempts to try the operation",
"default": 5,
"minimum": 1
},
"max_interval": {
"type": "number",
"description": "if specified, maximum amount that interval can increase to"
},
"backoff": {
"type": "number",
"minimum": 1,
"description": "increase interval by this factor between attempts"
},
"disable": {
"type": "boolean",
"default": false,
"description": "disable retry alltogether"
}
}
}
}
}
}
}