心曲
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
tune/config/development.ts

59 lines
1.4 KiB

export default {
// 主服务
master: {
systemName: '心曲Tune',
host: '0.0.0.0',
port: '3000',
},
swagger: {
enable: true,
},
dev: {
// 开发模式拦截器,用以提供接口请求时间和响应大小
devInterceptor: true,
},
log: {
level: 'all',
},
databases: {
starLight: {
host: 'localhost',
port: 3306,
username: 'root',
password: 'Hxl1314521',
database: 'Starlight',
},
},
redis: {
starLight: {
host: 'localhost',
port: 6379,
username: 'default',
password: 'default',
dbNumber: 3,
},
},
email: {
host: 'smtp.qq.com',
user: 'togy.gc@qq.com',
pass: 'miidbsjeuqcxddbf',
},
// 加密
encryption: {
salt: 'время,вперёд!', // 盐
secretKey: 'быть всегда готовым!', // 密钥
},
token: {
timeout: 1000 * 60 * 60 * 24 * 7,
secretKey: 'Missing You!(John waite)',
},
// 登录
signIn: {
// @ 密码验证次数超限后的冷却时长
signInErrorTimeout: 60 * 10,
// @ 允许密码输错几次
signInErrorNumber: 5,
// @ 允许同时在线数
onLineNumber: 6,
},
};