config.default_20220215085736.js
867 Bytes
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
/* eslint valid-jsdoc: "off" */
'use strict';
/**
* @param {Egg.EggAppInfo} appInfo app info
*/
module.exports = appInfo => {
/**
* built-in config
* @type {Egg.EggAppConfig}
**/
const config = exports = {};
// use for cookie sign key, should change to your own and keep security
config.keys = appInfo.name + '_1644800905769_2309';
// add your middleware config here
config.middleware = [];
config.sequelize = {
host: 'localhost',
port: '5432',
username: 'postgres',
password: 'wawjr1314',
database: 'ddn',
dialect: 'postgres',
pool: {
max: 5,
min: 0,
idle: 10000,
},
logging: true,
};
config.ed25519Address = '';
config.naclAddress = '';
// add your user config here
const userConfig = {
// myAppName: 'egg',
};
return {
...config,
...userConfig,
};
};