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
0daac49c
Commit
0daac49c
authored
Apr 19, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加tke nodejs配置
parent
68d23b72
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
331 additions
and
0 deletions
+331
-0
app-backend.js
tke/nodejs/app-backend.js
+186
-0
workflow-api.js
tke/nodejs/workflow-api.js
+32
-0
xyqb-h5-backend.js
tke/nodejs/xyqb-h5-backend.js
+113
-0
No files found.
tke/nodejs/app-backend.js
0 → 100644
View file @
0daac49c
'
use strict
'
;
var
redis
=
'
redis
'
var
db
=
'
db
'
module
.
exports
=
{
ip
:
process
.
env
.
OPENSHIFT_NODEJS_IP
||
process
.
env
.
IP
||
undefined
,
port
:
80
,
hostname
:
'
http://sappbackend.domain.com
'
,
secrets
:
{
session
:
process
.
env
.
SECRETS_SESSION
||
'
xyqb-app-api-prod-0.0.1
'
},
usercenter
:
{
host
:
db
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
xyqb_user
'
},
db
:
{
host
:
db
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
xyqb
'
},
uuidDb
:{
host
:
db
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
xyqb_app
'
},
coreDb
:
{
host
:
db
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
xyqb_app
'
},
mallDb
:
{
host
:
db
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
mall
'
},
msgDb
:
{
host
:
"
192.168.4.3
"
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
msg
'
},
redis
:
{
host
:
redis
,
port
:
'
6379
'
},
jd
:
{
root
:
'
https://router.jd.com
'
},
xyqbQuery
:
{
root
:
'
http://query.domain.com
'
},
userServer
:
{
//host: 'http://auth.domain.com' // 密码登录
host
:
'
http://passportapi.domain.com
'
//函谷关迁移至用户中心
},
xyqbapiServer
:
{
root
:
'
http://api.domain.com
'
},
xyqbOfflineApiServer
:
{
root
:
'
http://offapi.domain.com
'
},
userCenterApiServer
:
{
root
:
'
http://passportapi.domain.com
'
,
host
:
'
http://passportapi.domain.com
'
},
spiderCenter
:
{
root
:
'
http://scapi.domain.com
'
,
host
:
'
http://operator.liangkebang.com
'
,
//this is v2
},
loanAPIServer
:
{
root
:
'
http://api.domain.com
'
,
loginUrl
:
'
http://passportapi.domain.com/app/login2
'
// 免密登录,函谷关迁移至用户中心
},
blankNote
:
{
root
:
'
http://btapi.domain.com
'
},
opBackend
:
{
root
:
'
http://displayapi.domain.com
'
},
mall
:
{
root
:
'
http://mallapi.domain.com
'
,
authRoot
:
'
http://mallapi.domain.com
'
,
clientIp
:
'
61.50.125.14
'
,
// 公司的外网IP
jd
:
{
app_key
:
'
319e864090664a499ee6417b9e243f62
'
},
host
:
'
http://mallapi.domain.com
'
},
op
:
{
root
:
'
http://mallapi.domain.com
'
,
},
score
:
{
//积分系统
root
:
'
http://scoreapi.domain.com
'
,
},
redPacket
:
{
// 红包系统
root
:
'
http://redpacket.domain.com
'
,
},
authorization
:
{
root
:
'
http://mock.liangkebang.com/SpiderServer/api
'
,
haoxindu
:
{
root
:
'
http://openapi.quantgroup.cn/qauth
'
},
zhima
:
{
root
:
'
http://api.domain.com
'
,
rootscore
:
'
http://rapi.domain.com
'
}
},
activities
:
{
repaymentLottery
:
{
url
:
'
http://wechat.domain.com/turntable.html
'
},
redEnvelop
:
{
startAt
:
'
2016-03-15
'
,
finishAt
:
'
2016-04-01
'
},
invitation
:
{
startAt
:
'
2016-03-15
'
,
finishAt
:
'
2016-04-01
'
},
pickCoin
:
{
startAt
:
'
2016-02-29
'
,
finishAt
:
'
2016-03-21
'
},
blankNoteRedEnvelop
:
{
startAt
:
'
2016-04-01
'
,
finishAt
:
'
2016-05-01
'
}
},
loanProcess
:
{
h5Host
:
'
https://m.domain.com
'
},
blanknote
:
{
h5Host
:
'
http://bt.domain.com
'
},
mallH5Host
:
'
http://new-mall.domain.com
'
,
activity
:
{
h5Host
:
'
http://activity.domain.com
'
},
baseUI
:
{
host
:
'
http://h5.domain.com
'
},
rabbitMQ
:
{
host
:
redis
,
user
:
'
qa
'
,
password
:
'
qatest
'
},
userCreditApiServer
:
{
root
:
'
http://member.domain.com
'
},
scoreV2
:
{
host
:
'
http://scoreapi.domain.com
'
},
liangka
:
{
host
:
'
http://card.domain.com
'
},
payCenter
:
{
host
:
'
http://payapi.domain.com
'
},
passport
:
{
host
:
'
http://passportapi.domain.com
'
},
agreement
:
{
host
:
'
http://api.domain.com
'
},
xyqbloan
:
{
host
:
'
http://api.domain.com
'
//host 是现金贷的地址
},
xyqbLoan
:
{
host
:
'
http://api.domain.com
'
//host 是现金贷的地址
},
xyqbDisplay
:
{
host
:
'
http://display-config.domain.com
'
//广告
},
quantcubeApi
:
{
host
:
'
http://172.30.220.7:9050
'
}
};
\ No newline at end of file
tke/nodejs/workflow-api.js
0 → 100644
View file @
0daac49c
'
use strict
'
/**
* * Created by menzhongxin on 2018/1/30.
* */
module
.
exports
=
{
port
:
80
,
secret
:
'
lvmf
'
,
expires
:
2
*
60
*
60
,
// 秒
refreshExpires
:
7
*
24
*
60
*
60
,
// 秒
redis
:
{
easyMode
:
{
host
:
'
redis
'
,
port
:
6379
}
},
coreDb
:
{
host
:
'
db
'
,
user
:
'
qa
'
,
password
:
'
qatest
'
,
database
:
'
workflow
'
},
salt
:
'
workflowapi
'
,
ruleEngine
:
{
host
:
'
http://rule-engine.domain.com
'
},
dingDing
:
{
host
:
'
https://oapi.dingtalk.com/robot/send?access_token=d98313d2ac9e53b73547d16e251737d85eb39183c4a0c4568c8174125b75c6cd
'
,
domain
:
'
http://workflowapi.domain.com
'
,
atMobiles
:
[
"
17600200895
"
,
"
17600200895
"
]
}
}
\ No newline at end of file
tke/nodejs/xyqb-h5-backend.js
0 → 100644
View file @
0daac49c
const
path
=
require
(
'
path
'
)
const
logDir
=
path
.
resolve
(
process
.
cwd
(),
'
./logs
'
)
module
.
exports
=
{
port
:
80
,
accessOrigin
:
[
"
.xyqb.com
"
,
"
.q-gp.com
"
,
"
.quantgroup.cn
"
,
"
.liangkebang.com
"
],
api
:
{
passport_api
:
'
http://passportapi.domain.com
'
,
xjd_api
:
'
http://api.domain.com
'
,
redpacket_api
:
'
http://redpacket.domain.com
'
,
score_api
:
'
http://scoreapi.domain.com
'
,
auth_api
:
'
https://auth.domain.com
'
,
flow_api
:
'
http://flow.domain.com
'
,
mall_api
:
'
http://mallapi.domain.com
'
,
bt_api
:
'
http://btapi.domain.com
'
,
appbackend_api
:
'
http://sappbackend.domain.com
'
,
pay_api
:
'
http://payapi.domain.com
'
,
sc_api
:
'
http://scapi.domain.com
'
},
redis
:
{
api
:
'
redis://redis:6379/1
'
},
//极速版
appbackend_redis
:
{
host
:
'
redis
'
,
port
:
6379
// sentinels: [
// { host: 'appbackend-redis1.quantgroups.com', port: 26379 },
// { host: 'appbackend-redis2.quantgroups.com', port: 26379 },
// { host: 'appbackend-redis3.quantgroups.com', port: 26379 }
// ],
// name: 'mymaster'
},
xyqbapiServer
:
{
root
:
'
http://api.domain.com
'
,
loanHomeStatus
:
'
/v3/speed/app/home_status
'
,
receiveToken2
:
'
/ex/login/receive_token2
'
,
},
xyqbDisplay
:
{
host
:
'
http://display-config.xyqb.com
'
,
getLoanConfig
:
'
/ex/loan_config
'
},
blankNote
:
{
root
:
'
http://btapi.xyqb.com
'
,
receiveToken
:
'
/ex/login/btreceive_token
'
,
},
// Secret for session, you will want to change this and make it an environment variable
secrets
:
{
session
:
'
xyqb-app-api-prod-0.0.1
'
,
salt
:
'
_lkb
'
},
gateway
:
{
secretKey
:
'
z-user-secret
'
,
phoneKey
:
'
z-user-phone-no
'
,
secretValue
:
'
z.h,w44RXMu4XL#dq_%@ZX,u*gd]zVhmdks@H8krq*Gn-CC:6>YTHX_Kh=_#D7LR
'
},
passport
:
{
host
:
'
http://passportapi.domain.com
'
},
userCenterApiServer
:
{
appLoginUrl
:
'
/app/login2
'
},
log4js
:
{
appenders
:
{
out
:
{
type
:
'
stdout
'
},
app
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/xyqb-h5-backend.log
'
,
daysToKeep
:
3
,
compress
:
true
},
error
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/xyqb-h5-backend.error.log
'
,
daysToKeep
:
3
,
compress
:
true
},
just_errors
:
{
type
:
'
logLevelFilter
'
,
appender
:
'
error
'
,
level
:
'
error
'
}
},
categories
:
{
default
:
{
appenders
:
[
'
out
'
,
'
app
'
,
'
just_errors
'
],
level
:
'
info
'
}
}
},
qiniu
:
{
domain
:
'
https://mapi.domain.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://operator.liangkebang.com/auth-center/api/ocr/h5/auth_url.json
'
,
query_api
:
'
http://operator.liangkebang.com/auth-center/h5/api/ocr/auth.json
'
,
key
:
'
wd8bRaLf1nbiMDvPpM1fP9sA2mVSmmpy
'
},
rabbitmq
:
{
mall_api
:
'
amqp://qa:qatest@rabbitmq:5672/mall
'
},
zookeeper
:
{
api
:
'
zookeeper:2181
'
,
znode
:
[
'
/grpc/help_center
'
]
},
accessOrigin
:
[
"
.xyqb.com
"
,
"
.q-gp.com
"
,
"
.quantgroup.cn
"
,
"
.liangkebang.com
"
]
}
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