-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.schema.json
74 lines (74 loc) · 2.06 KB
/
conf.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"required": ["database", "session"],
"properties": {
"redis": {
"type": "object",
"properties": {
"enable": { "type": "boolean" },
"dsn": { "type": "string", "minLength": 1 }
}
},
"database": {
"type": "object",
"properties": {
"dsn": { "type": "string", "minLength": 1 }
},
"required": ["dsn"]
},
"session": {
"type": "object",
"properties": {
"key": { "type": "string", "minLength": 64 },
"prefix": { "type": "string", "minLength": 1 },
"cookie": { "type": "string", "minLength": 1 },
"expire": { "type": "number", "minimum": 1 },
"remember": { "type": "number", "minimum": 1 }
},
"required": ["key"]
},
"listen": {
"type": "object",
"properties": {
"address": { "type": "string", "minLength": 1 },
"worker": { "type": "number", "minimum": 0 },
"ssl": { "type": "boolean" },
"ssl_cert": { "type": "string", "minLength": 1 },
"ssl_key": { "type": "string", "minLength": 1 }
}
},
"header": {
"type": "object",
"properties": {
"csp": { "type": "string", "minLength": 1 }
}
},
"proxy": {
"type": "object",
"properties": {
"enable": { "type": "boolean" },
"header": { "type": "string", "minLength": 1 }
}
},
"recaptcha": {
"type": "object",
"properties": {
"enable": { "type": "boolean" },
"url": { "type": "string", "minLength": 1 },
"sitekey": { "type": "string", "minLength": 1 },
"secret": { "type": "string", "minLength": 1 },
"timeout": { "type": "number", "minimum": 0 }
}
},
"csrf": {
"type": "object",
"properties": {
"prefix": { "type": "string", "minLength": 1 },
"expire": { "type": "number", "minimum": 1 }
}
},
"avatar": { "type": "string", "minLength": 1 },
"lang": { "type": "string", "minLength": 1 }
}
}