-
Notifications
You must be signed in to change notification settings - Fork 1
/
baseConfig.prodBase.ts
80 lines (74 loc) · 2.16 KB
/
baseConfig.prodBase.ts
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
/*
* @Author: legends-killer
* @Date: 2021-11-21 19:38:47
* @LastEditors: legends-killer
* @LastEditTime: 2021-11-29 23:30:27
* @Description: 基础配置模板,不要修改!!!用于初始化数据库。应用启动后可前往控制台修改。
*/
import { ISystemSettingEmail, ISystemSettingErrorReport, ISystemSettingSchedule, ISystemSettingAccessKey } from './typings/types'
// Do NOT modify this file !!!
// init config, it will be saved in database when you deploy the app, or the database is empty
// you can modify the config in admin control center after the app is deployed
export const email: ISystemSettingEmail = {
user: '', // email account
password: '', // email password
host: '', // email smtp host
sender: '', // email sender [email protected]
sendTo: [''], // email send to
}
export const systemErrorReport: ISystemSettingErrorReport = {
enable: true,
muteUntil: new Date('1999'), // mute error until
timeThreshold: 10, // minutes
warnThreshold: 20, // warn records threshold
errorThreshold: 10, // error records threshold
}
export const proxyErrorReport: ISystemSettingErrorReport = {
enable: true,
muteUntil: new Date('1999'), // mute error until
timeThreshold: 10, // minutes
warnThreshold: 100, // warn records threshold
errorThreshold: 50, // error records threshold
}
export const abTestErrorReport: ISystemSettingErrorReport = {
enable: true,
muteUntil: new Date('1999'), // mute error until
timeThreshold: 10, // minutes
warnThreshold: 100, // warn records threshold
errorThreshold: 50, // error records threshold
}
export const scheduleInterval: ISystemSettingSchedule = {
apiCache: {
enable: true,
interval: '1m',
},
bizCache: {
enable: true,
interval: '1m',
},
userCache: {
enable: true,
interval: '1m',
},
abTest: {
enable: true,
interval: '1m',
},
systemInfo: {
enable: true,
interval: '1m',
},
systemInfoCache: {
enable: true,
interval: '1m',
},
errorDetector: {
enable: true,
interval: '1m',
},
}
// refresh it after deploy
export const accessKey: ISystemSettingAccessKey = {
enable: true,
key: 'xxxxxx', // for inner API access
}