|
|
@ -1,24 +1,3 @@
|
|
|
|
# Copyright © 2023 OpenIM. All rights reserved.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the License);
|
|
|
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------
|
|
|
|
|
|
|
|
# TODO: This config file is the template file
|
|
|
|
|
|
|
|
# --| source: deployments/templates/config.yaml
|
|
|
|
|
|
|
|
# --| env: scripts/install/environment
|
|
|
|
|
|
|
|
# --| target: config/config.yaml
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
envs:
|
|
|
|
envs:
|
|
|
|
discovery: zookeeper
|
|
|
|
discovery: zookeeper
|
|
|
|
|
|
|
|
|
|
|
@ -122,14 +101,14 @@ api:
|
|
|
|
# minio.signEndpoint is minio public network address
|
|
|
|
# minio.signEndpoint is minio public network address
|
|
|
|
object:
|
|
|
|
object:
|
|
|
|
enable: "minio"
|
|
|
|
enable: "minio"
|
|
|
|
apiURL: "http://172.28.0.1:10002"
|
|
|
|
apiURL: "http://240e:47e:3060:8cc:f664:1fee:9c86:9455:10002"
|
|
|
|
minio:
|
|
|
|
minio:
|
|
|
|
bucket: "openim"
|
|
|
|
bucket: "openim"
|
|
|
|
endpoint: "http://172.28.0.1:10005"
|
|
|
|
endpoint: "http://172.28.0.1:10005"
|
|
|
|
accessKeyID: "root"
|
|
|
|
accessKeyID: "root"
|
|
|
|
secretAccessKey: "openIM123"
|
|
|
|
secretAccessKey: "openIM123"
|
|
|
|
sessionToken: ''
|
|
|
|
sessionToken: ''
|
|
|
|
signEndpoint: "http://172.28.0.1:10005"
|
|
|
|
signEndpoint: "http://240e:47e:3060:8cc:f664:1fee:9c86:9455:10005"
|
|
|
|
publicRead: false
|
|
|
|
publicRead: false
|
|
|
|
cos:
|
|
|
|
cos:
|
|
|
|
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
|
|
|
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
|
|
@ -154,8 +133,8 @@ object:
|
|
|
|
sessionToken: ''
|
|
|
|
sessionToken: ''
|
|
|
|
publicRead: false
|
|
|
|
publicRead: false
|
|
|
|
aws:
|
|
|
|
aws:
|
|
|
|
endpoint: ""
|
|
|
|
endpoint: "''" # This might not be necessary unless you're using a custom endpoint
|
|
|
|
region: ""
|
|
|
|
region: "us-east-1"
|
|
|
|
bucket: "demo-9999999"
|
|
|
|
bucket: "demo-9999999"
|
|
|
|
accessKeyID: ''
|
|
|
|
accessKeyID: ''
|
|
|
|
accessKeySecret: ''
|
|
|
|
accessKeySecret: ''
|
|
|
@ -200,7 +179,7 @@ rpcRegisterName:
|
|
|
|
# Whether to output in json format
|
|
|
|
# Whether to output in json format
|
|
|
|
# Whether to include stack trace in logs
|
|
|
|
# Whether to include stack trace in logs
|
|
|
|
log:
|
|
|
|
log:
|
|
|
|
storageLocation: /workspaces/open-im-server/logs/
|
|
|
|
storageLocation: /data/workspaces/open-im-server/_output/logs/
|
|
|
|
rotationTime: 24
|
|
|
|
rotationTime: 24
|
|
|
|
remainRotationCount: 2
|
|
|
|
remainRotationCount: 2
|
|
|
|
remainLogLevel: 6
|
|
|
|
remainLogLevel: 6
|
|
|
@ -250,9 +229,10 @@ push:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Built-in app manager user IDs
|
|
|
|
# Built-in app manager user IDs
|
|
|
|
# Built-in app manager nicknames
|
|
|
|
# Built-in app manager nicknames
|
|
|
|
|
|
|
|
# Attention, this configure is discarded. If you have used him before, configure your own
|
|
|
|
manager:
|
|
|
|
manager:
|
|
|
|
userID: [ "openIM123456", "openIM654321", "openIMAdmin" ]
|
|
|
|
userID:
|
|
|
|
nickname: [ "system1", "system2", "system3" ]
|
|
|
|
nickname:
|
|
|
|
|
|
|
|
|
|
|
|
# chatAdmin, use for send notification
|
|
|
|
# chatAdmin, use for send notification
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -336,7 +316,7 @@ callback:
|
|
|
|
timeout: 5
|
|
|
|
timeout: 5
|
|
|
|
failedContinue: true
|
|
|
|
failedContinue: true
|
|
|
|
afterSendSingleMsg:
|
|
|
|
afterSendSingleMsg:
|
|
|
|
enable: true
|
|
|
|
enable: false
|
|
|
|
timeout: 5
|
|
|
|
timeout: 5
|
|
|
|
failedContinue: true
|
|
|
|
failedContinue: true
|
|
|
|
beforeSendGroupMsg:
|
|
|
|
beforeSendGroupMsg:
|
|
|
@ -521,7 +501,7 @@ callback:
|
|
|
|
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
|
|
|
|
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
|
|
|
|
prometheus:
|
|
|
|
prometheus:
|
|
|
|
enable: true
|
|
|
|
enable: true
|
|
|
|
grafanaUrl: http://172.28.0.1:13000/
|
|
|
|
grafanaUrl: http://240e:47e:3060:8cc:f664:1fee:9c86:9455:13000/
|
|
|
|
apiPrometheusPort: [20100]
|
|
|
|
apiPrometheusPort: [20100]
|
|
|
|
userPrometheusPort: [ 20110 ]
|
|
|
|
userPrometheusPort: [ 20110 ]
|
|
|
|
friendPrometheusPort: [ 20120 ]
|
|
|
|
friendPrometheusPort: [ 20120 ]
|
|
|
@ -534,3 +514,39 @@ prometheus:
|
|
|
|
rtcPrometheusPort: [ 21300 ]
|
|
|
|
rtcPrometheusPort: [ 21300 ]
|
|
|
|
thirdPrometheusPort: [ 21301 ]
|
|
|
|
thirdPrometheusPort: [ 21301 ]
|
|
|
|
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports
|
|
|
|
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###################### LocalCache configuration information ######################
|
|
|
|
|
|
|
|
# topic: redis subscriber channel
|
|
|
|
|
|
|
|
# slotNum: number of slots, multiple slots can prevent too many keys from competing for a lock
|
|
|
|
|
|
|
|
# slotSize: number of slots, the number of cached keys per slot, the overall cache quantity is slotNum * slotSize
|
|
|
|
|
|
|
|
# successExpire: successful cache time seconds
|
|
|
|
|
|
|
|
# failedExpire: failed cache time seconds
|
|
|
|
|
|
|
|
# disable local caching and annotate topic, slotNum, and slotSize
|
|
|
|
|
|
|
|
localCache:
|
|
|
|
|
|
|
|
user:
|
|
|
|
|
|
|
|
topic: DELETE_CACHE_USER
|
|
|
|
|
|
|
|
slotNum: 100
|
|
|
|
|
|
|
|
slotSize: 2000
|
|
|
|
|
|
|
|
successExpire: 300
|
|
|
|
|
|
|
|
failedExpire: 5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
group:
|
|
|
|
|
|
|
|
topic: DELETE_CACHE_GROUP
|
|
|
|
|
|
|
|
slotNum: 100
|
|
|
|
|
|
|
|
slotSize: 2000
|
|
|
|
|
|
|
|
successExpire: 300
|
|
|
|
|
|
|
|
failedExpire: 5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
friend:
|
|
|
|
|
|
|
|
topic: DELETE_CACHE_FRIEND
|
|
|
|
|
|
|
|
slotNum: 100
|
|
|
|
|
|
|
|
slotSize: 2000
|
|
|
|
|
|
|
|
successExpire: 300
|
|
|
|
|
|
|
|
failedExpire: 5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversation:
|
|
|
|
|
|
|
|
topic: DELETE_CACHE_CONVERSATION
|
|
|
|
|
|
|
|
slotNum: 100
|
|
|
|
|
|
|
|
slotSize: 2000
|
|
|
|
|
|
|
|
successExpire: 300
|
|
|
|
|
|
|
|
failedExpire: 5
|
|
|
|