-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.json
45 lines (43 loc) · 1.01 KB
/
config.json
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
//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"
}
}