forked from petermrg/eNode
-
Notifications
You must be signed in to change notification settings - Fork 2
/
enode.config.js
61 lines (50 loc) · 1.27 KB
/
enode.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
exports.config = {
name: '(TESTING!!!) eNode',
description: 'eNode: experimental ed2k server written in node.js',
address: '192.168.1.2',
//address: '192.168.1.50',
//address: '192.168.1.33',
//address: '192.168.43.61',
dynIp: '',
messageLowID: 'You have LowID.',
messageLogin: 'Welcome to eNode!',
noAssert: false, // Set noAssert to true to skip offset validation in Buffers
supportCrypt: true,
requestCrypt: true,
requireCrypt: true,
auxiliarPort: false, // ??
IPinLogin: false, // ??
tcp: {
port: 5555,
portObfuscated: 5565,
maxConnections: 1000000,
connectionTimeout: 2000, // time to wait before giving LowId (ms)
allowLowIDs: true,
minLowID: 1,
maxLowID: 0xffffff,
},
udp: {
port: 5559, // tcp+4
portObfuscated: 5569,
getSources: true,
getFiles: true,
serverKey: 0x12345678,
},
storage: {
engine: 'mysql',
mysql: {
database: 'enode',
host: 'localhost',
user: 'enode',
pass: 'password',
log: false,
fullLog: false,
connections: 8, // number of concurrent connections to MySQL server
deadlockDelay: 100, // time to wait (ms) before retry deadlocked query
},
mongodb: {
host: '127.0.0.1',
port: '27017',
}
},
};