-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.js
41 lines (36 loc) · 981 Bytes
/
config.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
const config = {
DEFAULT_CRAWLER_OPTIONS: {
address: '0.0.0.0',
port: 6881,
tableMaxSize: 256,
dhtAnnouncingBootstrap: 1381,
dhtAnnouncingTable: 1511,
BEP51Mode: false,
verticalAttackMode: false,
verticalAttackNrNodes: 8,
BOOTSTRAP_NODES: [
['router.bittorrent.com', 6881],
['dht.transmissionbt.com', 6881]
]
},
DEFAULT_PEER_DISCOVERY_OPTIONS: {
port: 6880,
timeout: 7 * 1000, //for rapid crawling put 2
timeout_initial: 5 * 1000,
dht: false
},
DEFAULT_METADATA_FETCHER_OPTIONS: {
timeout: 8 * 1000,
socketTimeout: 5000,
tracker: true,
torcacheURL: "http://itorrents.org/torrent/"
},
DEFAULT_ELASTIC_SEARCH_OPTIONS: {
connection: {
host: 'localhost:9200'
},
batchSizeDHT: 5000,
batchSizeTorrent: 10
},
};
module.exports = config;