1+ # Copyright © 2023 OpenIM. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # ---------------Infrastructure configuration---------------------#
16+ etcd :
17+ etcdSchema : openim # 默认即可
18+ etcdAddr : [ 127.0.0.1:2379 ] # 单机部署时,默认即可
19+ userName :
20+ password :
21+ secret : openIM123
22+
23+ mysql :
24+ dbMysqlDatabaseName : admin_chat # 数据库名字 默认即可
25+
26+ # 默认管理员账号
27+ admin :
28+ defaultAccount :
29+ account : [ "admin1", "admin2" ]
30+ defaultPassword : [ "password1", "password2" ]
31+ openIMUserID : [ "openIM123456", "openIMAdmin" ]
32+ faceURL : [ "", "" ]
33+ nickname : [ "admin1", "admin2" ]
34+ level : [ 1, 100 ]
35+
36+
37+ adminapi :
38+ openImAdminApiPort : [ 10009 ] # 管理后台api服务端口,默认即可,需要开放此端口或做nginx转发
39+ listenIP : 0.0.0.0
40+
41+ chatapi :
42+ openImChatApiPort : [ 10008 ] # 登录注册,默认即可,需要开放此端口或做nginx转发
43+ listenIP : 0.0.0.0
44+
45+ rpcport : # rpc服务端口 默认即可
46+ openImAdminPort : [ 30200 ]
47+ openImChatPort : [ 30300 ]
48+
49+
50+ rpcregistername : # rpc注册服务名,默认即可
51+ openImChatName : Chat
52+ openImAdminCMSName : Admin
53+
54+ chat :
55+ codeTTL : 300 # 短信验证码有效时间(秒)
56+ superVerificationCode : 666666 # 超级验证码
57+ alismsverify : # 阿里云短信配置,在阿里云申请成功后修改以下四项
58+ accessKeyId :
59+ accessKeySecret :
60+ signName :
61+ verificationCodeTemplateCode :
62+
63+
64+ oss :
65+ tempDir : enterprise-temp # 临时密钥上传的目录
66+ dataDir : enterprise-data # 最终存放目录
67+ aliyun :
68+ endpoint : https://oss-cn-chengdu.aliyuncs.com
69+ accessKeyID : " "
70+ accessKeySecret : " "
71+ bucket : " "
72+ tencent :
73+ BucketURL : " "
74+ serviceURL : https://cos.COS_REGION.myqcloud.com
75+ secretID : " "
76+ secretKey : " "
77+ sessionToken : " "
78+ bucket : " "
79+ use : " minio"
0 commit comments