config.js 511 B

123456789101112131415161718
  1. /**
  2. * naiveboom配置文件
  3. * @type {Object}
  4. */
  5. module.exports = {
  6. // redis服务器配置
  7. redis_host: '127.0.0.1',
  8. redis_port: '6379',
  9. redis_pwd: null, // 没有redis密码则写 null
  10. // redis Hash列表名
  11. field_lists: 'naives',
  12. // 1小时内单个IP可获取最多临时链接数
  13. rate_limit: 500,
  14. // 是否显示首页中的作死文本 eg.「☭赵」
  15. isZhao: true,
  16. // 用于匹配GUID的正则
  17. reg_guid: /[?a-zA-Z0-9]{8}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{4}-[?a-zA-Z0-9]{12}$/,
  18. }