Configuration File
A-Parser has a number of hidden settings that are overridden via a special configuration file config/config.txt. Initially, this file is not included in the A-Parser distribution, and if it becomes necessary to override any of the hidden settings, it must be created first.
caution
This category of settings requires a mandatory restart of A-Parser when changed
Available Settings
| Parameter | Default Value | Description |
|---|---|---|
| bind: ip:port | 0.0.0.0:9091 | IP address and port used for accessing the A-Parser interface |
| outgoing_ip: ip | 0.0.0.0 | IP address for outgoing connections to sites or proxy servers |
| dns: ip1, ip2, ip3... | Google/CloudFlare predefined DNS | List of used DNS addresses |
| dns_retries: N | 2 | Number of attempts to get a response from the DNS server |
| dns_timeout: N | 5 | DNS server response timeout in seconds |
| dns_random: N | 0 | Randomize requests to DNS servers |
| dns_cache_size: N | 131072 | DNS cache size in records |
| dns_cache_time: N | 3600 | Time to keep a record in the DNS cache in seconds |
| proxies_reuse: N | 0 | Allows using the same proxy for repeated attempts to scrape a query; you must also set the proxy ban time to 0 |
| https: N | 1 | Determines whether to support HTTPS |
| save_interval: N | 10 | Interval for saving job progress to disk in seconds |
| allow_outside_files: N | 0 | Determines the ability to work with files outside the scraper directory |
| allow_dangerous_node_modules: N | 0 | This option allows using all built-in modules without restrictions, including process, child_process, os... Using this option can compromise the entire system if an attacker gains remote access to A-Parser; access must be restricted (firewall) and a strong password must be used. |
| allow_javascript_editor: N | 0 | This option opens access to the JS scraper editor. If you are not working locally in A-Parser, you must also set a password for A-Parser to access the JS scraper editor |
| proxies_dns_local: N | 0 | DNS over proxy. Possible values: 0 - resolves via proxy, 1 - resolves locally, 2 - resolves locally and the connect method is always used for http proxies |