import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1717137510330_2075',
  koa: {
    port: 7001,
  },
  upload: {
    realdir: 'upload',
  },
  qichacha: {
    key: 'd52e7d621b974b06a3f8a90645223c47',
    secretKey: '230A5D226DFBD80F3BE73E42971EF837',
  },
  modulesConfig: {
    es: 'http://127.0.0.1:9701/cxyy/es',
    mq: 'http://127.0.0.1:9702/cxyy/mq',
  },
  PathConfig: {
    path: 'C:\\temp\\cxyy\\',
  },
  showDBSub: false,
  /**登录短信前缀 */
  loginSmsSign: 'LoginSmsSign',
  /**忘记密码短信前缀 */
  pwdSmsSign: 'PasswordSmsSign',
  /**注册短信前缀 */
  regSmsSign: 'RegisterSmsSign',
  aliyunSms: {
    template: 'SMS_275370127', //模板code
    sign: '吉林省华欣数字科技股份', //签名
    AccessKey_ID: 'LTAI5tDGzajxW6oDiTBvKB53',
    AccessKey_Secret: 'woGAW31X6PuzaE2O1fawwFCxfWMsfw',
  },
  email: {
    config: {
      host: 'smtp.163.com',
      secureConnection: true,
      port: 465,
      secure: true,
      auth: {
        user: 'songjian52749@163.com', // 邮箱账号
        pass: 'PYFHXRALSEYFHKSO', // 邮箱stmp授权码
      },
    },
    from: '吉林省工业技术研究院', // 发件人名称
  },
} as MidwayConfig;
