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
90b3346e
Commit
90b3346e
authored
Jan 25, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
3b57e78d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
0 deletions
+145
-0
op-api.js
nodejs/op-api.js
+10
-0
op-api.js
tke/nodejs/op-api.js
+135
-0
No files found.
nodejs/op-api.js
View file @
90b3346e
...
...
@@ -63,6 +63,16 @@ module.exports = {
}
},
mysql
:
{
risk_data_statistics
:
{
host
:
'
172.20.6.10
'
,
port
:
9030
,
user
:
'
monitor
'
,
password
:
'
monitor0302
'
,
database
:
'
risk_data_statistics
'
}
},
// redis配置
redis
:
{
api
:
'
redis://redis:6379/1
'
...
...
tke/nodejs/op-api.js
0 → 100644
View file @
90b3346e
// 和环境有关的配置
var
path
=
require
(
"
path
"
);
module
.
exports
=
{
// controller中请求各类数据前缀和域名的键值对
api
:
{
merchantBackend_api
:
'
http://merchantapi.domain.com
'
,
redpacket_api
:
'
http://redpacket.domain.com
'
,
app_api
:
'
http://sappbackend.domain.com
'
,
btCapital_api
:
'
http://fundmanage.domain.com
'
,
btDirect_api
:
'
http://internal.btzt.domain.com
'
,
boHai_api
:
'
http://fundmanage.domain.com
'
,
es_api
:
'
http://172.20.2.130:9200
'
,
sms_api
:
'
http://backend.domain.com
'
,
userCenter_api
:
'
http://passportapi2.domain.com
'
,
zbj_api
:
'
http://taurus.quantgroup.cn/
'
,
//ynTrust_api: 'http://target_host_name:7034',
gdxd_api
:
'
http://gyxd.domain.com
'
,
msgTmp_api
:
'
http://192.168.4.3:8051
'
,
msgPush_api
:
'
http://message-center-op
'
,
statistics_api
:
'
http://statisticsapi.domain.com
'
,
clotho_api
:
'
http://clotho.domain.com
'
,
fe_es_api
:
'
http://192.168.4.51:9200
'
,
merchant_api
:
'
http://merchantapi.domain.com
'
,
settlement_api
:
'
http://settlementapi.domain.com
'
,
score_api
:
'
http://scoreapi.domain.com
'
,
quantcube_api
:
'
http://quantcube-api.domain.com
'
,
ruleEngine_api
:
'
http://rule-engine.domain.com
'
,
lzs_api
:
'
http://qg-ai-calc.domain.com
'
,
smsList_api
:
'
http://172.30.4.68:25003
'
,
asset_api
:
'
http://assentapi.domain.com
'
,
// riskManager_api: 'http://rc.quantgroup.cn'
riskManager_api
:
'
http://rc.domain.com
'
},
behaviorLogPath
:
'
../logs/op-api-behavior.log
'
,
// 站点相关的配置
site
:
{
env
:
'
development
'
,
port
:
80
},
userCenter
:
'
http://op.domain.com
'
,
newUserCenter
:
'
http://op.domain.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
'
}
},
mysql
:
{
risk_data_statistics
:
{
host
:
'
62.234.200.51
'
,
port
:
3306
,
user
:
'
root
'
,
password
:
'
qatest
'
,
database
:
'
risk_data_statistics
'
}
},
// redis配置
redis
:
{
api
:
'
redis://redis:6379/1
'
},
// 七牛配置
qiniu
:
{
domain
:
'
http://opapi.domain.com
'
,
cdn_domain
:
'
https://appsync.lkbang.net
'
,
refresh_api
:
'
http://fusion.qiniuapi.com/refresh
'
,
ACCESS_KEY
:
'
e2S74rOnpqNz1rkZRdgY45c8L988PoARRQ60_6-t
'
,
SECRET_KEY
:
'
YYtAEZ2bPDiyNLt2qLKGpaEp0-Thq8tGLrqlBgxY
'
,
BUCKET
:
'
app-sync
'
,
},
upload
:
{
path
:
path
.
resolve
(
__dirname
,
'
../upload
'
)
},
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
"
}
}
]
},
cronTab
:
{
strategy
:
'
*/1 * * * *
'
,
pushJob
:
'
*/1 * * * *
'
},
flashPush
:
{
testUserIds
:
[
'
51535725
'
],
switchOn
:
true
,
ins
:
{
mail
:
[
'
xingchun.chen@quantgroup.cn
'
],
sms
:
[
'
25366264
'
,
'
27355922
'
]
},
outs
:
{
mail
:
[
'
xingchun.chen@quantgroup.cn
'
],
sms
:
[
'
36983993
'
,
'
50873613
'
]
},
recall
:
{
mail
:
[
'
xiaoli.ren@quantgroup.cn
'
]
}
}
}
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