/**
 * production
 *
 *  prod + default（override）
 */

import { Application, EggAppConfig } from 'egg';

export default (appInfo: EggAppConfig) => {
  const exports: any = {};

  exports.logger = {
    dir: '/home/quant_group/logs',
  };


  exports.sequelize = {
    dialect: 'mysql',
    username: 'low_code_w',
    password: 'B2pRHuGMLBNybuKp',
    host: 'low-code-db.quantgroups.com',
    port: 3306,
    database: 'low_code',
  };

  exports.redis = {
    default: {
      keyPrefix: appInfo.name + ':',
    },
    client: {
      port: 6379,          // Redis port
      host: 'front-redis.quantgroups.com',   // Redis host
      password: 'ln4^ESq80j4nrTMZ',
      db: 0
    }
  };

  return exports;
};
