refactor: config change.

pull/2148/head
Gordon 2 years ago
parent 2363fb40b4
commit 650851a1b1

@ -6,4 +6,4 @@ api:
prometheus:
enable: true
grafanaUrl: http://127.0.0.1:13000/
prometheusPort: [20100]
prometheusPort: [20100]

@ -1,3 +1,8 @@
cronTasks:
chatRecordsClearTime: "0 2 * * 3"
msgDestructTime: "0 2 * * *"
retainChatRecords: 365

@ -8,5 +8,6 @@ prometheus:
enable: true
grafanaUrl: http://127.0.0.1:13000/
prometheusPort: [ 20140 ]
multiLoginPolicy: 1

@ -14,6 +14,12 @@ push:
masterSecret: ''
pushUrl: ''
pushIntent: ''
iosPush:
pushSound: "xxx"
badgeCount: true
production: false
prometheus:
enable: true
grafanaUrl: http://127.0.0.1:13000/

@ -10,3 +10,10 @@ prometheus:
grafanaUrl: http://127.0.0.1:13000/
prometheusPort: [ 20130 ]
messageVerify:
friendVerify: false
groupMessageHasReadReceiptEnable: true
singleMessageHasReadReceiptEnable: true

@ -11,57 +11,21 @@ log:
msgCacheTimeout: 86400
multiLoginPolicy: 1
messageVerify:
friendVerify: false
tokenPolicy:
expire: 90
groupMessageHasReadReceiptEnable: true
singleMessageHasReadReceiptEnable: true
retainChatRecords: 365
chatRecordsClearTime: "0 2 * * 3"
msgDestructTime: "0 2 * * *"
secret: openIM123
iosPush:
pushSound: "xxx"
badgeCount: true
production: false
###################### Third-party service configuration ######################
# Callback configuration
#
# Callback URL
# Whether to enable this callback event
# Timeout in seconds
# Whether to continue execution if callback fails
###################### Prometheus ######################
# Prometheus configuration for various services
# The number of Prometheus ports per service needs to correspond to rpcPort
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
prometheus:
enable: true
grafanaUrl: http://127.0.0.1:13000/
apiPrometheusPort: [20100]
userPrometheusPort: [ 20110 ]
friendPrometheusPort: [ 20120 ]
messagePrometheusPort: [ 20130 ]
messageGatewayPrometheusPort: [ 20140 ]
groupPrometheusPort: [ 20150 ]
authPrometheusPort: [ 20160 ]
pushPrometheusPort: [ 20170 ]
conversationPrometheusPort: [ 20230 ]
rtcPrometheusPort: [ 21300 ]
thirdPrometheusPort: [ 21301 ]
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports

Loading…
Cancel
Save