config.js 1.1 KB
/**
 * config.js
 * @author: feng.chen<feng.chen@yoho.cn>
 * @date: 2017/04/13
 */

'use strict';
const apiDomain = require('./api-domain');

//
const config = {
  app: 'shop-manage',
  appVersion: '0.0.1', // 调用api的版本
  platform: 2,
  port: 6007,
  siteUrl: '//shop.yohobuy.com',
  assetUrl: '//127.0.0.1:5001',
  cookieDomain: '.yohobuy.com',
  apiDomain,
  loggers: {
    infoFile: {
      name: 'info',
      level: 'info',
      filename: '/Data/logs/yoho-shop-manage/info/info.log',
      maxFiles: 1,
      tailable: true,
      maxsize: Math.pow(1024, 3),
      timestamp() {
        return new Date().toString();
      },
    },
    errorFile: {
      name: 'error',
      level: 'error',
      filename: '/Data/logs/yoho-shop-manage/error/error.log',
      handleExceptions: true,
      maxFiles: 1,
      tailable: true,
      maxsize: Math.pow(1024, 3),
      timestamp() {
        return new Date().toString();
      },
    },
    console: {
      close: true,
      level: 'info',
      colorize: 'all',
      prettyPrint: true,
    },
  },
  memcache: {
    session: '',
  },
};

module.exports = config;