Commit 581fdba2 authored by wentao.suo's avatar wentao.suo

change xyqb-h5-backend config

parent 5dd061ec
const path = require('path') const path = require('path')
const logDir = path.resolve(process.cwd(), '../logs') const logDir = path.resolve(process.cwd(), './logs')
module.exports = { module.exports = {
port:80,
api: { api: {
passport_api: 'http://xyqb-user', passport_api: 'http://xyqb-user',
xjd_api: 'http://xyqb', xjd_api: 'http://xyqb',
redpacket_api: 'http://redpacket', redpacket_api: 'http://redpacket',
...@@ -13,34 +14,15 @@ module.exports = { ...@@ -13,34 +14,15 @@ module.exports = {
flow_api: 'http://traffic-webapp', flow_api: 'http://traffic-webapp',
mall_api: 'http://xyqb-mall', mall_api: 'http://xyqb-mall',
bt_api: 'http://baitiao' bt_api: 'http://baitiao'
},
site: {
env: 'development',
port: 80
},
mongo: { appbackend_api: 'http://app-backend',
options: { pay_api: 'http://gu-bei'
},
api: 'mongodb://192.168.4.50:27017/h5_xyqb'
}, },
redis: { redis: {
api: 'redis://redis:6379/1' api: 'redis://redis:6379/1'
}, },
rabbitmq: {
mall_api: 'amqp://qa:qatest@rabbitmq:5672/mall'
},
qiniu: {
domain: 'https://mapi.xyqb.com',
ACCESS_KEY: 'QyjX3i2tEMvrv50j6M_wpb9YoFJbxSm3jEkOj9lY',
SECRET_KEY: 'uoMTzRLoElTAKXVzelGgTvI652zJ8bCz_qqTtoGl',
BUCKET: 'app-sync',
},
log4js: { log4js: {
appenders: { appenders: {
out: { type: 'stdout' }, out: { type: 'stdout' },
...@@ -52,4 +34,25 @@ module.exports = { ...@@ -52,4 +34,25 @@ module.exports = {
default: { appenders: ['out', 'app', 'just_errors'], level: 'info' } default: { appenders: ['out', 'app', 'just_errors'], level: 'info' }
} }
}, },
};
qiniu: {
domain: 'https://mapi.xyqb.com',
ACCESS_KEY: 'e2S74rOnpqNz1rkZRdgY45c8L988PoARRQ60_6-t',
SECRET_KEY: 'YYtAEZ2bPDiyNLt2qLKGpaEp0-Thq8tGLrqlBgxY',
BUCKET: 'app-sync',
},
mongo: {
api: 'mongodb://192.168.4.50:27017/h5_xyqb'
},
ocr: {
auth_api: 'http://139.198.2.95:38099/auth-center/api/ocr/h5/auth_url.json',
query_api: 'http://139.198.2.95:38099/auth-center/h5/api/ocr/auth.json',
key: 'wd8bRaLf1nbiMDvPpM1fP9sA2mVSmmpy'
},
rabbitmq: {
mall_api: 'amqp://qa:qatest@rabbitmq:5672/mall'
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment