1 Star 0 Fork 43

NoC/mockcat

forked from KingWTD/mockcat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.js 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
KingWTD 提交于 2020-04-24 20:20 . 更新MOCK和Markdown编辑器
/**
* Configurations
* @author Wangtd
*/
const paths = require('./lib/util.js').paths;
module.exports = {
debug: true,
port: 8181,
workDir: paths('./work'),
mockDir: paths('./work/mock'),
blogDir: paths('./work/blog'),
security: {
admins: [],
mailDomain: '@',
allowedHosts: ['127.0.0.1']// false
},
proxy: {
port: {
offset: 8181,
ranges: [8181, 9191]
},
enabled: true
},
sessionConfig: {
secret: 'mockcat',
cookie: { maxAge: 120 * 60 * 1000 },// 120 minutes
resave: false,
saveUninitialized: true
},
mailConfig: {
host: 'smtp.qq.com',
secureConnection: true,
auth: {
pass: 'secret'
}
},
logConfig: {
appenders: {
'console': { type: 'console' },
'logfile': {
type: 'file',
filename: './logs/stdout.log',
maxLogSize: 10485760,
backups: 10,
encoding: 'utf-8'
}
},
categories: {
'default': {
appenders: ['console', 'logfile'],
level: 'info'
}
}
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/No_C/mockcat.git
[email protected]:No_C/mockcat.git
No_C
mockcat
mockcat
master

搜索帮助