Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
3b415441
Commit
3b415441
authored
Nov 21, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodejs
parent
5489f3a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
0 deletions
+154
-0
op-api.js
nodejs/op-api.js
+84
-0
xyqb-h5-backend.js
nodejs/xyqb-h5-backend.js
+70
-0
No files found.
nodejs/op-api.js
0 → 100644
View file @
3b415441
// 和环境有关的配置
module
.
exports
=
{
// controller中请求各类数据前缀和域名的键值对
api
:
{
merchantBackend_api
:
'
http://merchantapi.xyqb.com
'
,
redpacket_api
:
'
http://redpacket.xyqb.com
'
,
app_api
:
'
https://sappbackend.xyqb.com
'
,
btCapital_api
:
'
http://fundmanage.xyqb.com
'
,
boHai_api
:
'
http://fundmanage.xyqb.com
'
,
btDirect_api
:
'
http://internal.btzt.xyqb.com
'
,
sms_api
:
'
http://backend.xyqb.com
'
,
userCenter_api
:
'
https://passportapi.xyqb.com
'
,
zbj_api
:
'
http://taurus.quantgroup.cn/
'
,
gdxd_api
:
'
http://192.168.4.161:7005
'
},
// 站点相关的配置
site
:
{
env
:
'
development
'
,
port
:
80
},
userCenter
:
'
http://op.xyqb.com
'
,
// mongo配置
mongo
:
{
options
:
{
options
:
{
auto_reconnect
:
true
,
poolSize
:
3
,
socketOptions
:
{
keepAlive
:
300000
,
connectTimeoutMS
:
30000
}
},
},
api
:
{
'
implied
'
:
'
mongodb://192.168.4.50:27017/op
'
,
'
xyqb
'
:
'
mongodb://192.168.4.50:27017/h5_xyqb
'
,
'
loan
'
:
'
mongodb://192.168.4.50:27017/loan
'
,
'
ka_factory
'
:
'
mongodb://192.168.4.50:27017/ka_factory
'
}
},
// redis配置
redis
:
{
api
:
'
redis://192.168.4.50:6379/1
'
},
// 七牛配置
qiniu
:
{
domain
:
'
http://op-api.xyqb.com
'
,
ACCESS_KEY
:
'
QyjX3i2tEMvrv50j6M_wpb9YoFJbxSm3jEkOj9lY
'
,
SECRET_KEY
:
'
uoMTzRLoElTAKXVzelGgTvI652zJ8bCz_qqTtoGl
'
,
BUCKET
:
'
app-sync
'
,
},
upload
:
{
path
:
'
/vpants/quant_group/op-api-data
'
},
log4js
:
{
"
appenders
"
:
[
{
"
type
"
:
"
dateFile
"
,
"
filename
"
:
"
/home/quant_group/logs/op-api.log
"
,
"
pattern
"
:
"
-yyyy-MM-dd
"
,
"
layout
"
:
{
type
:
'
basic
'
}
},
{
"
type
"
:
"
logLevelFilter
"
,
"
level
"
:
"
ERROR
"
,
"
appender
"
:
{
"
type
"
:
"
dateFile
"
,
"
filename
"
:
"
/home/quant_group/logs/op-api-errors.log
"
,
"
pattern
"
:
"
-yyyy-MM-dd
"
}
}
]
},
upload
:
{
path
:
'
/home/quant_group/op-api/upload
'
}
}
\ No newline at end of file
nodejs/xyqb-h5-backend.js
0 → 100644
View file @
3b415441
module
.
exports
=
{
api
:
{
passport_api
:
'
http://passportapi.xyqb.com
'
,
xjd_api
:
'
http://api.xyqb.com
'
,
redpacket_api
:
'
http://redpacket.xyqb.com
'
,
score_api
:
'
http://scoreapi.xyqb.com
'
,
auth_api
:
'
https://auth.xyqb.com
'
,
flow_api
:
'
http://flow.xyqb.com
'
,
mall_api
:
'
http://mallapi.xyqb.com
'
,
bt_api
:
'
http://btapi.xyqb.com
'
},
site
:
{
env
:
'
development
'
,
port
:
80
},
mongo
:
{
options
:
{
},
api
:
'
mongodb://192.168.4.50:27017/h5_xyqb
'
},
redis
:
{
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
:
{
appenders
:
[
{
type
:
"
console
"
},
{
type
:
"
dateFile
"
,
filename
:
"
/home/quant_group/logs/xyqb-h5-backend.log
"
,
pattern
:
"
-yyyy-MM-dd
"
},
{
type
:
"
logLevelFilter
"
,
level
:
"
ERROR
"
,
appender
:
{
type
:
"
dateFile
"
,
filename
:
"
/home/quant_group/logs/xyqb-h5-backend-errors.log
"
,
pattern
:
"
-yyyy-MM-dd
"
}
},
{
type
:
'
dateFile
'
,
filename
:
'
/home/quant_group/logs/xyqb-h5-backend-proxy.log
'
,
pattern
:
'
.yyyy-MM-dd
'
,
category
:
'
proxy
'
,
layout
:
{
type
:
'
pattern
'
,
pattern
:
"
%m
"
}
}
]
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment