'use strict'; const { sep } = require('path'); module.exports = () => { const config = (exports = {}); config.logger = { level: 'DEBUG', consoleLevel: 'DEBUG', }; config.wxapi = { appid: 'wxdf3ed83c095be97a', // 微信公众号APPID baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址 mchid: '1505364491', // 商户ID mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key wxurl: 'http://free.liaoningdoupo.com/api/wxpayback', payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder', }; config.cdn = { repos_root_path: `D:\\temp${sep}upload`, repos_root_url_excel: `${sep}excel${sep}`, repos_root_url_experience: `${sep}experience${sep}`, repos_root_url_zip: `${sep}zip${sep}`, }; // 服务器发布路径 config.baseUrl = 'http://jytz.jilinjobs.cn/'; // 认证回调地址 config.authUrl = '/api/auth'; // mq config config.amqp = { client: { hostname: '192.168.1.128', username: 'visit', password: 'visit', vhost: 'train', }, app: true, agent: true, }; // redis config config.redis = { client: { port: 6379, // Redis port host: '192.168.1.128', // Redis host password: '123456', db: 0, }, }; // config.mongoose = { // url: 'mongodb://localhost:27017/train', // options: { // user: 'demo', // pass: 'demo', // authSource: 'admin', // useNewUrlParser: true, // useCreateIndex: true, // useUnifiedTopology: true, // }, // }; return config; };