-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
60 lines (47 loc) · 1.31 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
//TODO: IMPORTANT: не забыть убрать данные подключения перед открытием репозитория
const config = {
isSqllite: false,
db: {
HOST: "localhost",
USER: "paul",
PASSWORD: "Fwd(/5PjK3-^jxqP",
DB: "tonswap_explorer_mainnet",
dialect: "mysql",
pool: {
max: 15,
min: 0,
acquire: 30000,
idle: 10000
}
},
explorerUrl: 'https://ton.live/',
network: 'main',
// FAVORITO
bindPort: 3002,
maxWorkers: 1,
sharedCacheName: 'explorerMainnet',
indexController: "Index",
databases: [
/* {
type: "sequelize",
name: "newdb",
config: {path: "mysql://chats:d281983c@localhost:3306/chats"},
},*/
],
secret: "5a0239f8f8ad281983c16ee815974562",
appUrl: "https://mainexplorer.tonswap.com",
salt: "19d62fc823eb117a148161310e05fba7a",
uploadDir: "public/uploads",
allowedExt: ["jpg", "jpeg", "png"],
}
if (config.isSqllite) {
const dbConf = config.db;
dbConf.HOST = "localhost";
dbConf.dialect = 'sqlite';
dbConf.dialectOptions = {
multipleStatements: true
};
dbConf.storage = './test_db.db';
}
Object.freeze(config);
module.exports = config;