-
Notifications
You must be signed in to change notification settings - Fork 123
/
config.example.js
71 lines (71 loc) · 2.86 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
62
63
64
65
66
67
68
69
70
71
module.exports = {
// Configuration for the HTTP API server
'http': {
'port': 80
},
// Whether to trust a forwarding proxy's IP (trust X-Forwarded-For)
'trust_proxy': false,
// 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'
},
{
'user': 'USERNAME_2',
'pass': 'PASSWORD_2',
'auth': '2FA_TOKEN_2'
}
],
// Optional HTTP/SOCKS5 proxies to auto-rotate for each bot in a round-robin
'proxies': [],
// 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,
// OPTIONAL: Settings for Steam User (https://github.com/DoctorMcKay/node-steam-user#options-)
'steam_user': {}
},
// 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'
],
// Origins allowed to connect to the HTTP/HTTPS API with Regex
'allowed_regex_origins': [
'https://.*\\.steamcommunity\\.com'
],
// Optionally configure a global rate limit across all endpoints
'rate_limit': {
'enable': false,
'window_ms': 60 * 60 * 1000, // 60 min
'max': 10000
},
// Logging Level (error, warn, info, verbose, debug, silly)
'logLevel': 'debug',
// Max amount of simultaneous requests from the same IP (incl. WS and HTTP/HTTPS), -1 for unlimited
'max_simultaneous_requests': 1,
// 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,
// Postgres connection string to store results in (ex. postgres://user:[email protected]:5432/postgres?sslmode=disable)
'database_url': '',
// OPTIONAL: Enable bulk inserts, may improve performance with many requests
'enable_bulk_inserts': false,
// OPTIONAL: Key by the caller to allow inserting price information, required to use the feature
'price_key': '',
// OPTIONAL: Key by the caller to allow placing bulk searches
'bulk_key': '',
// OPTIONAL: Maximum queue size allowed before dropping requests
'max_queue_size': -1,
};