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
2e912845
Commit
2e912845
authored
Nov 19, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
statisticsapi
parent
f69f720d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
155 additions
and
0 deletions
+155
-0
statistics-api.js
nodejs/statistics-api.js
+155
-0
No files found.
nodejs/statistics-api.js
View file @
2e912845
const
path
=
require
(
'
path
'
);
// 和环境有关的配置
module
.
exports
=
{
// controller中请求各类数据前缀和域名的键值对
api
:
{
es_api
:
'
http://172.30.9.35:9200
'
},
// 站点相关的配置
site
:
{
env
:
'
development
'
,
port
:
7073
,
},
userCenter
:
'
http://192.168.4.50:7032
'
,
// mongo配置
mongo
:
{
options
:
{
server
:
{
poolSize
:
5
,
autoReconnect
:
true
,
connectTimeoutMS
:
30000
,
socketTimeoutMS
:
300000
}
},
api
:
{
'
implied
'
:
'
mongodb://192.168.4.50:27017/op
'
,
'
loan
'
:
'
mongodb://192.168.4.50:27017/loan
'
}
},
mysql
:
{
api
:
{
audit
:
'
mysql://logaudit_pro:au90oplnb#uhj76@172.16.3.71:3306/log_audit
'
,
cashloan
:
'
mysql://cashloan_read:IRJQTPA3U3LkLQEU@tidb-tech.quantgroups.com:40002/cashloan
'
,
xyqb
:
'
mysql://xjdtongji:xjdtongji@172.16.3.35:3306/xyqb
'
,
xyqbUser
:
'
mysql://xjdtongji:xjdtongji@192.168.4.253:3313/xyqb_user
'
},
options
:
{
dialect
:
'
mysql
'
,
timezone
:
'
+08:00
'
}
},
// tidb配置
tidb
:
{
cashloan
:
{
connectionLimit
:
500
,
host
:
'
tidb-tech.quantgroups.com
'
,
port
:
40002
,
user
:
'
cashloan_all
'
,
password
:
'
lZCyX6SS1ZdDM6J7
'
,
database
:
'
cashloan
'
},
xyqb
:
{
connectionLimit
:
300
,
host
:
'
172.16.3.35
'
,
port
:
3306
,
user
:
'
xjdtongji
'
,
password
:
'
xjdtongji
'
,
database
:
'
xyqb
'
},
logAudit
:
{
connectionLimit
:
300
,
host
:
'
172.16.3.71
'
,
port
:
3306
,
user
:
'
logaudit_pro
'
,
password
:
'
au90oplnb#uhj76
'
,
database
:
'
log_audit
'
},
analysisTmp
:
{
connectionLimit
:
300
,
host
:
'
172.16.4.5
'
,
port
:
4006
,
user
:
'
zheng.wang
'
,
password
:
'
$uijkmhbnjiopkl34R
'
,
database
:
'
analysis_tmp
'
},
monitor
:
{
connectionLimit
:
300
,
host
:
'
tidb-tech.quantgroups.com
'
,
port
:
40002
,
user
:
'
monitor_w
'
,
password
:
'
nLLDCzk2RTys33wO
'
,
database
:
'
monitor
'
},
test
:
{
connectionLimit
:
300
,
host
:
'
tidb-tech.quantgroups.com
'
,
port
:
40002
,
user
:
'
root
'
,
password
:
''
,
database
:
'
test
'
},
riskDataStatistics
:
{
host
:
'
172.20.6.9
'
,
port
:
9030
,
user
:
'
monitor
'
,
password
:
'
monitor0302
'
,
database
:
'
risk_data_statistics
'
}
},
// redis配置
redis
:
{
api
:
'
redis://redis:6379/2
'
},
log4js
:
{
"
appenders
"
:
[{
"
type
"
:
"
console
"
},
{
"
type
"
:
"
dateFile
"
,
"
filename
"
:
"
logs/statistics-api.log
"
,
"
pattern
"
:
"
-yyyy-MM-dd
"
},
{
"
type
"
:
"
logLevelFilter
"
,
"
level
"
:
"
WARN
"
,
"
appender
"
:
{
"
type
"
:
"
dateFile
"
,
"
filename
"
:
"
logs/statistics-api-warn.log
"
,
"
pattern
"
:
"
-yyyy-MM-dd
"
}
},
{
"
type
"
:
"
logLevelFilter
"
,
"
level
"
:
"
ERROR
"
,
"
appender
"
:
{
"
type
"
:
"
dateFile
"
,
"
filename
"
:
"
logs/statistics-api-errors.log
"
,
"
pattern
"
:
"
-yyyy-MM-dd
"
}
}
]
},
upload
:
{
path
:
path
.
resolve
(
__dirname
,
'
../upload
'
)
},
mail
:
{
user
:
`Data_Visualization@quantgroup.cn`
,
pass
:
'
Quant@@l23456789&&123.c0m!$$
'
},
xjdMonitor
:
{
// 推送钉钉机器人地址
robot
:
'
https://oapi.dingtalk.com/robot/send?access_token=1b3dfd0d288c0ebd519c2f870d08e407c36f87e0d496b65557242ca2e8e67970
'
,
// 数据来源
dataUrl
:
'
http://statisticsapi.domain.com/analysis/monitorData
'
,
countUrl
:
'
http://statisticsapi.domain.com/aggregation/count
'
,
bussinessUrl
:
'
http://business-watcher.xyqb.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