31 Star 152 Fork 43

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: {
user: 'example@qq.com',
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'
}
}
}
};
NodeJS
1
https://gitee.com/kingwtd/mockcat.git
git@gitee.com:kingwtd/mockcat.git
kingwtd
mockcat
mockcat
master

搜索帮助