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.
52 lines
1.3 KiB
52 lines
1.3 KiB
2 years ago
|
module.exports = {
|
||
|
// 配置文件路径
|
||
|
CONFIG_PATH:__dirname,
|
||
|
SYSTEM_NAME:'ANTO-G',
|
||
|
PROJECT_NAME:'sys22 userSys',
|
||
|
PORT:'3000',
|
||
|
KEY:'expressgy',
|
||
|
DATABASE_INIT:{
|
||
|
host: 'localhost',
|
||
|
user: 'root',
|
||
|
password:'Hxl1314521',
|
||
|
database: "sys22_user",
|
||
|
port: 3306,
|
||
|
sqlFile:__dirname + "/database/sys22_user.sql"
|
||
|
},
|
||
|
// 加密
|
||
|
encryption:{
|
||
|
salt:'время,вперёд!',// 盐
|
||
|
secretKey:"быть всегда готовым!",// 密钥
|
||
|
},
|
||
|
// 用户系统
|
||
|
user:{
|
||
|
// 注册
|
||
|
sign:{
|
||
|
mailVerf: false,// 邮箱验证注册
|
||
|
phoneVerf:false,// 手机验证注册
|
||
|
length:4,// 验证码长度
|
||
|
},
|
||
|
// 登录
|
||
|
login:{
|
||
|
timeLimit:1000 * 60 * 60 * 24 * 14 ,// token时常
|
||
|
}
|
||
|
},
|
||
|
// 邮件服务
|
||
|
EMAILCONFIG : {
|
||
|
HOST:'smtp.qq.com',
|
||
|
USER:'togy.gc@qq.com',
|
||
|
PASS:'qnpjbbeyunysdhac'
|
||
|
},
|
||
|
// redis
|
||
|
RedisJSON:{
|
||
|
host:'172.17.162.197',
|
||
|
port:6379,
|
||
|
timeout:5 * 60 * 1000,
|
||
|
// timeout:5 * 1000,
|
||
|
startClear: false,
|
||
|
pool:0,
|
||
|
clearTime:1000 * 60 * 60 * 6
|
||
|
},
|
||
|
// 一个用户的同时在线终端数量
|
||
|
maxClientOnline:6
|
||
|
}
|