This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
executable file
·103 lines (102 loc) · 2.03 KB
/
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
let config = {
//Service
service: {
//Listen port
port: 9009,
//Threads for http request
threads: 4,
},
//Request for mass tile download
request: {
delay: 3,
//Milliseconds
timeout: 30000,
userAgent: 'Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0'
},
db: {
//Prevent write in DB any tiles in any mode
ReadOnly: false,
//Idle time in seconds to close DB file if idle
OpenTime: 15
},
network: {
//(enable, disable, force)
state: "enable"
},
proxy: {
//Use proxy or not (true or false)
enable: false,
//Enable tor change ID
tor: false,
//Type of proxy(socks, socks4, socks5, http, https)
protocol: "http",
//Host can be IP or domain
host: '89.40.8.207',
//Port
port: 9099,
auth: {
username: 'test',
password: 'test',
tor: {
HashedControlPassword: "16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C",
ControlPort: 9051
}
}
},
//----------------------------------------------------------------------------
//Log service
//----------------------------------------------------------------------------
log: {
//How many entries keep in logs
length: 20,
DB: {
success: false,
info: true,
error: true,
warning: true
},
MAP: {
success: false,
info: false,
error: true,
warning: false
},
SQLITE3: {
success: false,
info: false,
error: true,
warning: true
},
HTTP: {
success: false,
info: false,
error: true,
warning: false
},
GPS: {
success: true,
info: true,
error: true,
warning: true
},
MAIN: {
success: true,
info: true,
error: true,
warning: true
},
POI: {
success: true,
info: false,
error: true,
warning: true
},
WORKER: {
success: true,
info: true,
error: true,
warning: true
}
}
};
module.exports = config;