mirror of
https://github.com/liameno/librengine.git
synced 2024-10-03 17:30:02 +03:00
46 lines
1.0 KiB
JSON
46 lines
1.0 KiB
JSON
//proxy: type://ip:port OR empty ("")
|
|
//socks5://127.0.0.1:9050
|
|
|
|
//_s - seconds
|
|
|
|
{
|
|
"global": {
|
|
//edit also website/frontend/js/search_encrypt.js
|
|
"rsa_key_length": 1024, //1024|2048|4096
|
|
"max_title_show_size": 55,
|
|
"max_desc_show_size": 350,
|
|
"nodes": [
|
|
{
|
|
"name": "This",
|
|
"url": "http://127.0.0.1:8080"
|
|
}
|
|
]
|
|
},
|
|
"crawler": {
|
|
"user_agent": "librengine",
|
|
"proxy": "socks5://127.0.0.1:9050",
|
|
"load_page_timeout_s": 10,
|
|
"update_time_site_info_s_after": 864000, //10 days
|
|
"delay_time_s": 1,
|
|
"max_pages_site": 5,
|
|
"max_page_symbols": 50000000, //50mb
|
|
"max_robots_txt_symbols": 3000,
|
|
"max_lru_cache_size_host": 512,
|
|
"max_lru_cache_size_url": 512,
|
|
"is_http_to_https": true,
|
|
"is_check_robots_txt": true
|
|
},
|
|
"cli": {
|
|
"proxy": "socks5://127.0.0.1:9050"
|
|
},
|
|
"website": {
|
|
"port": 8080,
|
|
"proxy": "socks5://127.0.0.1:9050"
|
|
},
|
|
//edit also init_db.sh
|
|
"db": {
|
|
"url": "http://localhost:8108",
|
|
"api_key": "xyz"
|
|
}
|
|
}
|