mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-07 12:17:02 +08:00
fix: config env command
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
4d9fa91250
commit
481d1983f3
@ -24,8 +24,8 @@ zookeeper:
|
||||
|
||||
mysql:
|
||||
address: [ 127.0.0.1:13306 ] #目前仅支持单机
|
||||
username: root
|
||||
password: openIM123
|
||||
username: root #用户名
|
||||
password: openIM123 #密码
|
||||
database: openIM_v3 #不建议修改
|
||||
maxOpenConn: 1000 #最大连接数
|
||||
maxIdleConn: 100 #最大空闲连接数
|
||||
@ -37,14 +37,14 @@ mongo:
|
||||
uri: #不为空则直接使用该值
|
||||
address: [ 127.0.0.1:37017 ] #单机时为mongo地址,使用分片集群时,为mongos地址
|
||||
database: openIM_v3 #mongo db 默认即可
|
||||
username: root
|
||||
password: openIM123
|
||||
username: root #用户名
|
||||
password: openIM123 #密码
|
||||
maxPoolSize: 100
|
||||
|
||||
redis:
|
||||
address: [ 127.0.0.1:16379 ] #
|
||||
username: #only redis version 6.0+ need username
|
||||
password: openIM123
|
||||
password: openIM123 #密码
|
||||
|
||||
kafka:
|
||||
username: #用户名
|
||||
@ -74,12 +74,12 @@ api:
|
||||
|
||||
object:
|
||||
enable: "minio" #使用minio
|
||||
apiURL: http://116.30.3.80:10002/object/
|
||||
apiURL: "http://127.0.0.1:10002/object/" #地址需要app能访问到
|
||||
minio:
|
||||
bucket: "openim" #不建议修改
|
||||
endpoint: http://116.30.3.80:10005
|
||||
accessKeyID: root
|
||||
secretAccessKey: openIM123
|
||||
endpoint: "http://127.0.0.1:10005" #minio对外服务的ip和端口,app要能访问此ip和端口
|
||||
accessKeyID: "root" #ID
|
||||
secretAccessKey: "openIM123" #秘钥
|
||||
sessionToken: "" #token
|
||||
cos: #tencent cos
|
||||
bucketURL: "https://temp-1252357374.cos.ap-chengdu.myqcloud.com"
|
||||
@ -90,7 +90,7 @@ object:
|
||||
endpoint: "https://oss-cn-chengdu.aliyuncs.com"
|
||||
bucket: "demo-9999999"
|
||||
bucketURL: "https://demo-9999999.oss-cn-chengdu.aliyuncs.com"
|
||||
accessKeyID: root
|
||||
accessKeyID: ""
|
||||
accessKeySecret: ""
|
||||
sessionToken: ""
|
||||
|
||||
@ -167,7 +167,7 @@ retainChatRecords: 365 #mongo保存离线消息
|
||||
chatRecordsClearTime: "0 2 * * 3" #每周三凌晨2点清理mongo中的过期(超过retainChatRecords时间)消息,这个删除是为了清理满足上个配置retainChatRecords的过期消息,不会发送通知,仅仅作为清理磁盘使用
|
||||
msgDestructTime: "0 2 * * *" #消息自动删除时间,每天凌晨2点删除过期消息,这个删除是为了删除保留时间超过超过会话字段msg_destruct_time(秒)的消息。
|
||||
|
||||
secret: openIM123
|
||||
secret: tuoyun #秘钥,获取token时校验
|
||||
|
||||
tokenPolicy:
|
||||
expire: 90 #过期时间(天)
|
||||
@ -257,4 +257,4 @@ prometheus: #prometheus每个服务的端口数量需要和rpcPort保持对应
|
||||
conversationPrometheusPort: [ 20230 ]
|
||||
rtcPrometheusPort: [ 21300 ]
|
||||
thirdPrometheusPort: [ 21301 ]
|
||||
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] #端口数量需要和script/path_info.sh中的msg_transfer_service_num保持一致
|
||||
messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] #端口数量需要和script/path_info.sh中的msg_transfer_service_num保持一致
|
||||
@ -39,7 +39,7 @@ GO_VERSION="1.18"
|
||||
# LATEST_TAG=v3.0.0
|
||||
|
||||
# default OpenIM install directory is /tmp
|
||||
DOWNLOAD_OPENIM_DIR="/test"
|
||||
# DOWNLOAD_OPENIM_DIR="/test"
|
||||
|
||||
# github proxy
|
||||
# PROXY="https://ghproxy.com/"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user