-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.config.jsonc
More file actions
95 lines (86 loc) · 3.29 KB
/
Copy pathexample.config.jsonc
File metadata and controls
95 lines (86 loc) · 3.29 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
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
{
// What port should the API listen on?
// Default: 8080
"port": 8080,
// Configuration for the database used by the API.
// Right now, only MongoDB is supported. Sorry.
"database": {
// The URL used to connect to the MongoDB instance.
"mongodb_connection_string": "mongodb+srv://YOUR-CONNECTION-STRING-HERE",
// The database in MongoDB that should be used.
"mongodb_database_name": "YOUR-DATABASE-NAME"
},
// Configuration for blob storage (S3-compatible)
"blob": {
// The S3-compatible endpoint URL that should be used.
"s3_endpoint_url": "https://YOUR-S3-ENDPOINT-HERE",
// The access key ID that should be used with the S3-compatible API.
"s3_access_key_id":"YOUR-S3-ACCESS-KEY-ID-HERE",
// The secret access key that should be used with the S3-compatible API.
"s3_secret_access_key": "YOUR-S3-SECRET-ACCESS-KEY-HERE"
},
// All options relating to the image / photo system.
"images": {
// Completely disables image fetching, will return an error status.
// Default: false
"disable_fetch": false,
// Disables the in-memory cache. Useful on memory-constrained systems.
// Default: false
"disable_caching": false,
// Prevents users from uploading images entirely.
// Default: false
"disable_upload": false,
// The maximum size of uploaded images.
// Default: "10mb"
"max_size": "10mb",
// The S3(-compatible) bucket that should be used for storing images.
"s3_bucket": "MyCVRImageBucket",
// The domain that can be used to access the bucket.
"domain": "https://YOUR-PUBLIC-IMAGE-BUCKET-DOMAIN-HERE"
},
// Configuration relating to custom rooms.
"rooms": {
// The S3(-compatible) bucket that should be used for storing rooms.
"s3_bucket": "MyCVRRoomBucket",
// The domain that can be used to access the bucket.
"domain": "https://YOUR-PUBLIC-ROOM-BUCKET-DOMAIN-HERE"
},
// Settings for debugging / developing the API itself.
"debug": {
// Logs the level of server load to the audit log very frequently.
// Default: false
"enable_load_logging": false,
// Prints a tabulated display of all live matchmaking instances
// every few minutes.
// Default: false
"trace_instances": false,
// The identifier for this specific CVR server instance, used in the
// Discord webhook on audit logs. Leave blank, and the webhook won't
// be invoked.
"discord_webhook_id": "My CVR Server :)",
// The URL that should be called to send a Discord webhook. Leave blank
// to prevent the webhook from being called.
"discord_webhook_url": "https://discord.com/YOUR-WEBHOOK-URL-HERE",
// The secret that should be used to verify Git webhooks.
"webhook_git_pull_secret": "YOUR-GIT-PULL-SECRET"
},
// Used to configure the Automatic Error Reporting (AER) system.
"error_reporting": {
// An absolute or relative path to a public key for encrypting
// all received error reports.
"public_key_path": "/PATH/TO/YOUR/KEY.pub",
// The format of the public key.
"public_key_format": "openssh-public"
},
// Settings related to in-game moderation.
"moderation": {
// After how many reports should we automatically time out a player?
// Default: 3
"timeout_after_reports": 3
},
// Config related to the authentication process (login, 2FA, etc)
"authentication": {
// The secret used to sign all JWTs.
"token_secret": "YOUR-TOKEN-SIGNING-SECRET-HERE"
}
}