forked from csfloat/inspect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.js
61 lines (61 loc) · 2.15 KB
/
config.example.js
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
module.exports = {
// Configuration for the HTTP API server
"http": {
"enable": true,
"port": 1739
},
// Configuration for the HTTPS API server
"https": {
"enable": false,
"port": 1738,
"key_path": "certs/sslnopass.key",
"cert_path": "certs/api.example.com.crt",
"ca_path": "certs/example.cer"
},
// Configuration for the socket.io server
"socketio": {
"enable": false,
"origins": "example.com:80"
},
// List of usernames and passwords for the Steam accounts
"logins": [
{
"user": "USERNAME",
"pass": "PASSWORD",
// You can either use a 2FA email/mobile token (5 letters/digits), or the shared_secret of mobile 2FA
"auth": "2FA_TOKEN",
// OPTIONAL: Bool to show its playing CS:GO (Default: true)
"show_in_game": true
},
{
"user": "USERNAME_2",
"pass": "PASSWORD_2",
"auth": "2FA_TOKEN_2"
}
],
// Bot settings
"bot_settings": {
// Amount of attempts for each request to Valve
"max_attempts": 1,
// Amount of milliseconds to wait between subsequent requests to Valve (per bot)
"request_delay": 1100,
// Amount of milliseconds to wait until a request to Valve is timed out
"request_ttl": 2000
},
// Origins allowed to connect to the HTTP/HTTPS API
"allowed_origins": [
"http://example.com",
"https://example.com",
"chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg",
"http://steamcommunity.com",
"https://steamcommunity.com"
],
// Bool to Allow Simultaneous Requests to the API from the same IP (WS and HTTP/HTTPS)
"allow_simultaneous_requests": false,
// Bool to enable game file updates from the SteamDB Github tracker (updated item definitions, images, names)
"enable_game_file_updates": true,
// Amount of seconds to wait between updating game files (0 = No Interval Updates)
"game_files_update_interval": 3600,
// MongoDB connection info
"database_url": "mongodb://localhost:27017/CSGOFloatdb"
}