代码拉取完成,页面将自动刷新
exports.cookieKeys = ['arche is so good', 'I like it so much'];
exports.log4js = {
appenders: {
access: {
type: 'dateFile',
pattern: '-yyyyMMdd.log', //生成文件的规则
filename: 'logs/access.log',
layout: {
type: 'pattern',
pattern: '[%d{yyyy-MM-dd hh:mm:ss.SSS}] %m',
},
},
context: {
type: 'dateFile',
pattern: '-yyyyMMdd.log',
filename: 'logs/context.log',
layout: {
type: 'pattern',
pattern: '[%d{yyyy-MM-dd hh:mm:ss.SSS}] [%p] %c - %m',
},
},
console: {
type: 'console',
layout: {
type: 'pattern',
pattern: '[%d{yyyy-MM-dd hh:mm:ss.SSS}] [%p] %c - %m',
},
}
},
categories: {
default: { appenders: ['console', 'context'], level: 'DEBUG' },
context: { appenders: ['console', 'context'], level: 'DEBUG' },
access: { appenders: ['access'], level: 'INFO' },
}
};
exports.bodyparser = {
formLimit: '1mb',
jsonLimit: '1mb',
};
// exports.redis = {
// host: 'localhost',
// port: '6379',
// password: 'password',
// };
// exports.database = {
// default: {
// connectString: 'localhost',
// user: 'user',
// password: 'password',
// },
// };
// exports.rabbitmq = {
// url: "amqp://user:pwd@localhost",
// };
exports.ratelimit = {
driver: 'memory',
db: new Map(),
duration: 60 * 1000,
errorMessage: 'Sometimes You Just Have to Slow Down.',
id: (ctx) => ctx.ip,
headers: {
remaining: 'Rate-Limit-Remaining',
reset: 'Rate-Limit-Reset',
total: 'Rate-Limit-Total'
},
max: 100,
disableHeader: false,
whitelist: (ctx) => {
// some logic that returns a boolean
},
blacklist: (ctx) => {
// some logic that returns a boolean
}
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。