CoolFace
Apppublic

PixelPiggy/CS_float

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
config.example.js72 linesDownload Raw Back to root
1module.exports = {2    // Configuration for the HTTP API server3    'http': {4        'port': 805    },6    // Whether to trust a forwarding proxy's IP (trust X-Forwarded-For)7    'trust_proxy': false,8    // List of usernames and passwords for the Steam accounts9    'logins': [10        {11            'user': 'USERNAME',12            'pass': 'PASSWORD',13            // You can either use a 2FA email/mobile token (5 letters/digits), or the shared_secret of mobile 2FA14            'auth': '2FA_TOKEN'15        },16        {17            'user': 'USERNAME_2',18            'pass': 'PASSWORD_2',19            'auth': '2FA_TOKEN_2'20        }21    ],22    // Optional HTTP/SOCKS5 proxies to auto-rotate for each bot in a round-robin23    'proxies': [],24    // Bot settings25    'bot_settings': {26        // Amount of attempts for each request to Valve27        'max_attempts': 1,28        // Amount of milliseconds to wait between subsequent requests to Valve (per bot)29        'request_delay': 1100,30        // Amount of milliseconds to wait until a request to Valve is timed out31        'request_ttl': 2000,32        // OPTIONAL: Settings for Steam User (https://github.com/DoctorMcKay/node-steam-user#options-)33        'steam_user': {}34    },35    // Origins allowed to connect to the HTTP/HTTPS API36    'allowed_origins': [37        'http://example.com',38        'https://example.com',39        'chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg',40        'http://steamcommunity.com',41        'https://steamcommunity.com'42    ],43    // Origins allowed to connect to the HTTP/HTTPS API with Regex44    'allowed_regex_origins': [45        'https://.*\\.steamcommunity\\.com'46    ],47    // Optionally configure a global rate limit across all endpoints48    'rate_limit': {49        'enable': false,50        'window_ms': 60 * 60 * 1000, // 60 min51        'max': 1000052    },53    // Logging Level (error, warn, info, verbose, debug, silly)54    'logLevel': 'debug',55    // Max amount of simultaneous requests from the same IP  (incl. WS and HTTP/HTTPS), -1 for unlimited56    'max_simultaneous_requests': 1,57    // Bool to enable game file updates from the SteamDB Github tracker (updated item definitions, images, names)58    'enable_game_file_updates': true,59    // Amount of seconds to wait between updating game files (0 = No Interval Updates)60    'game_files_update_interval': 3600,61    // Postgres connection string to store results in (ex. postgres://user:pass@127.0.0.1:5432/postgres?sslmode=disable)62    'database_url': '',63    // OPTIONAL: Enable bulk inserts, may improve performance with many requests64    'enable_bulk_inserts': false,65    // OPTIONAL: Key by the caller to allow inserting price information, required to use the feature66    'price_key': '',67    // OPTIONAL: Key by the caller to allow placing bulk searches68    'bulk_key': '',69    // OPTIONAL: Maximum queue size allowed before dropping requests70    'max_queue_size': -1,71};72