-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.schema.json
More file actions
69 lines (69 loc) · 2.01 KB
/
config.schema.json
File metadata and controls
69 lines (69 loc) · 2.01 KB
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
{
"type": "object",
"properties": {
"corsOrigin": {
"description": "What domain the client is hosted on, allowlist for requests.",
"type": "string"
},
"hostname": {
"description": "The hostname to host the server on.",
"type": "string"
},
"port": {
"description": "The port to host the server on.",
"type": "number",
"minimum": 0,
"maximum": 65535
},
"maxNameLen": {
"description": "Maximum allowed length of player names.",
"type": "number",
"minimum": 0
},
"authenticationMethod": {
"description": "Which authentication method to use for database",
"type": "string",
"enum": ["default", "meow"],
"default": "default"
},
"trustedServerIPs": {
"description": "IP addresses of trusted game servers - with additional authentication, these addresses will be able to modify player stats.",
"type": "array",
"uniqueItems": true,
"default": [],
"items": {
"type": "string",
"format": "ipv4"
}
},
"authServer": {
"type": "string",
"format": "uri",
"default": "http://localhost:6969",
"examples": ["http://localhost:6969"]
},
"regions": {
"description": "Game servers.",
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"address": {
"type": "string"
}
}
}
}
}
},
"required": [
"hostname",
"port",
"maxNameLen",
"authenticationMethod",
"trustedServerIPs",
"authServer",
"regions"
]
}