text: 'use strict';
  const path = require('path')
  
  module.exports = appInfo => {
  
      return {
          // 插件路径
          admin_root_path: "http://wx.z-core.cn:8084",//admin_root_path: '/static',//upstream/2.1.6//'https://cdn.html-js.cn/cms/plugins/static/admin',
          // 数据库连接
          mongoose: {
              client: {
                  url: "mongodb://mongo:27017/doracms2",//'mongodb://127.0.0.1:27017/doracms2',
                  options: {
                      useCreateIndex: true,
                      useUnifiedTopology: true,
                      keepAlive: 3000
                  },
              },
          },
          // mongodb相关路径
          mongodb: {
              binPath: '/usr/local/mongodb/mongodb-linux-x86_64-ubuntu1604-4.0.0/bin/',
              backUpPath: '/home/database/doracms/'
          },
          // 静态目录
          static: {
              prefix: '/static',
              dir: [path.join(appInfo.baseDir, 'app/public'), path.join(appInfo.baseDir, 'backstage/dist'), '/home/doraData/uploadFiles/static'],
              maxAge: 31536000,
          },
          // 日志路径
          logger: {
              dir: '/home/doraData/logsdir/doracms',
          },
          // 服务地址配置
          server_path: 'http://wx.z-core.cn:8084',
          server_api: 'http://wx.z-core.cn:8084/api',
  
      }
  };