123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- 'use strict';
- const { jwt } = require('./config.secret');
- module.exports = appInfo => {
-
- const config = exports = {};
-
- config.keys = appInfo.name + '_1587024572540_7742';
-
- config.middleware = [];
-
- const userConfig = {
-
- };
-
- config.cluster = {
- listen: {
- port: 5555,
- },
- };
- config.wxapi = {
- appid: 'wxdf3ed83c095be97a',
- appSecret: '748df7c2a75077a79ae0c971b1638244',
- baseUrl: 'http://wx.cc-lotus.info',
- mchid: '1505364491',
- mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9',
- wxurl: 'https://free.liaoningdoupo.com/api/onlive/wxpayback',
- payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
- };
- config.proxy = true;
- config.hostHeaders = 'x-forwarded-host';
-
- config.baseUrl = 'https://free.liaoningdoupo.com';
-
- config.authUrl = '/api/onlive/auth';
-
- config.sdkappid = 1400414461;
- config.secretkey = '9726ce6e54b766c88903218c189dbcd11e7030613c076ff21bc0cc56c8072f24';
- config.mongoose = {
- url: 'mongodb://localhost:27017/liveplatform',
- options: {
- user: 'admin',
- pass: 'admin',
- authSource: 'admin',
- useNewUrlParser: true,
- useCreateIndex: true,
- useUnifiedTopology: true,
- },
- };
-
- config.redis = {
- client: {
- port: 6379,
- host: '127.0.0.1',
- password: 123456,
- db: 0,
- },
- };
- config.amqp = {
- client: {
- hostname: '127.0.0.1',
- username: 'live',
- password: 'live',
- vhost: 'live',
- },
- app: true,
- agent: true,
- };
-
- config.security = {
- csrf: {
-
- enable: false,
- },
- };
-
- config.jwt = {
- ...jwt,
- expiresIn: '1d',
- issuer: 'jobs',
- };
- config.view = {
- defaultViewEngine: 'nunjucks',
- mapping: {
- '.njk': 'nunjucks',
- },
- };
- return {
- ...config,
- ...userConfig,
- };
- };
|