development.js 1.27 KB


module.exports = {
  port: 3572,
  entryURL: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx52d72e78b0ecf0f0&redirect_uri=https%3A%2F%2Fwww.51liuliang.cc%2Fnetiou&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect',  
  baseURL: 'http://localhost:3572/netiou',  
  dir: {
    dist: 'dist',
    static: 'static',
    index: 'dist/index.html'
  },
  db: {
    name: 'net_iou',
    username: 'tianyao',
    password: '',
    host: '127.0.0.1',
    dialect: 'postgres',
    port: 5432,
  },
  session: {
    resave: false,
    saveUninitialized: true,
    cookie: {maxAge: 1000*60*60*24*30 },
    redisStore: {host: '127.0.0.1', port: 6379, prefix:'chs-sess'},
    secret: 'test'
  },
  jwt: {
    key: 'test',
  },
  bcrypt: {
    saltRounds: 1,
    salt: "LuPin SanSei"
  },
  wx: {
    url: 'http://api.chanzor.com/send',
    appId: 'wx52d72e78b0ecf0f0',
    appSecret: '7f5b1dd442a6c172586480d9e69c9fee'
  },
  sms: {
    account: '98abaa',
    password: 'd91ye3g50u'
  },
  idOCR: {
    url: 'https://recognition.image.myqcloud.com/ocr/idcard',
    appid: 10123991,
    bucket: 'id-decetive',
    SecretId: 'AKIDAAwToxEWv50fT28OM6ctwkKgmcBVfNvE',
    SecretKey: 'A4i6E6i5CWcS3OTGn45qLaZI3d081e3D'
  },
  img: {
    idImg: './idImg',
    iouImg: './iouImg'
  }
}