Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
迷糊迷途
Open-IM-Server
提交
0fca91ca
O
Open-IM-Server
项目概览
迷糊迷途
/
Open-IM-Server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Open-IM-Server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0fca91ca
编写于
2月 23, 2022
作者:
W
wenxu12345
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
config description
上级
188ca8fc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
65 addition
and
62 deletion
+65
-62
cmd/Open-IM-SDK-Core
cmd/Open-IM-SDK-Core
+1
-1
config/config.yaml
config/config.yaml
+64
-61
未找到文件。
Open-IM-SDK-Core
@
992f76df
比较
23f31958
...
992f76df
Subproject commit
23f31958dae08260c5f9631f4937389a8e2d6751
Subproject commit
992f76df0ee500a0377523b0780d3a85f2275755
config/config.yaml
浏览文件 @
0fca91ca
...
...
@@ -4,44 +4,44 @@
serverversion
:
2.0.0
#---------------Infrastructure configuration---------------------#
etcd
:
etcdSchema
:
openIM
etcdAddr
:
[
127.0.0.1
:
2379
]
etcdSchema
:
openIM
#默认即可
etcdAddr
:
[
127.0.0.1
:
2379
]
#单机部署时,默认即可
mysql
:
dbMysqlAddress
:
[
127.0.0.1
:
13306
]
dbMysqlUserName
:
root
dbMysqlPassword
:
openIM
dbMysqlDatabaseName
:
openIM_v2
dbTableName
:
eMsg
dbMysqlAddress
:
[
127.0.0.1
:
13306
]
#mysql地址 目前仅支持单机,默认即可
dbMysqlUserName
:
root
#mysql用户名,建议修改
dbMysqlPassword
:
openIM
# mysql密码,建议修改
dbMysqlDatabaseName
:
openIM_v2
#默认即可
dbTableName
:
eMsg
#默认即可
dbMsgTableNum
:
1
dbMaxOpenConns
:
20
dbMaxIdleConns
:
10
dbMaxLifeTime
:
120
mongo
:
dbAddress
:
[
127.0.0.1
:
37017
]
dbAddress
:
[
127.0.0.1
:
37017
]
#redis地址 目前仅支持单机,默认即可
dbDirect
:
false
dbTimeout
:
10
dbDatabase
:
openIM
dbDatabase
:
openIM
#mongo db 默认即可
dbSource
:
admin
dbUserName
:
dbPassword
:
dbUserName
:
#mongo用户名,建议先不设置
dbPassword
:
#mongo密码,建议先不设置
dbMaxPoolSize
:
20
dbRetainChatRecords
:
7
dbRetainChatRecords
:
3650
#mongo保存离线消息时间(天),根据需求修改
redis
:
dbAddress
:
127.0.0.1:16379
dbAddress
:
127.0.0.1:16379
#redis地址 目前仅支持单机,默认即可
dbMaxIdle
:
128
dbMaxActive
:
0
dbIdleTimeout
:
120
dbPassWord
:
openIM
dbPassWord
:
openIM
#redis密码 建议修改
kafka
:
ws2mschat
:
addr
:
[
127.0.0.1
:
9092
]
addr
:
[
127.0.0.1
:
9092
]
#kafka配置,默认即可
topic
:
"
ws2ms_chat"
ms2pschat
:
addr
:
[
127.0.0.1
:
9092
]
addr
:
[
127.0.0.1
:
9092
]
#kafka配置,默认即可
topic
:
"
ms2ps_chat"
consumergroupid
:
msgToMongo
:
mongo
...
...
@@ -55,6 +55,7 @@ kafka:
# The service ip default is empty,
# automatically obtain the machine's valid network card ip as the service ip,
# otherwise the configuration ip is preferred
#如果是单机模式,用0.0.0.0或者不填,默认即可
serverip
:
0.0.0.0
# endpoints 内部组件间访问的端点host名称,访问时,可以内部直接访问 host:port 来访问
...
...
@@ -73,27 +74,28 @@ endpoints:
rpc_message_cms
:
openim_rpc_admin_cms
api
:
openImApiPort
:
[
10000
]
openImApiPort
:
[
10000
]
#api服务端口,默认即可,需要开放此端口或做nginx转发
cmsapi
:
openImCmsApiPort
:
[
8000
]
openImCmsApiPort
:
[
8000
]
#管理后台api服务端口,默认即可,需要开放此端口或做nginx转发
sdk
:
openImSdkWsPort
:
[
30000
]
openImSdkWsPort
:
[
30000
]
#jssdk服务端口,默认即可,项目中使用jssdk才需开放此端口或做nginx转发
credential
:
credential
:
#腾讯cos,发送图片、视频、文件时需要,请自行申请后替换,必须修改
tencent
:
appID
:
1302656840
region
:
ap-chengdu
bucket
:
echat-1302656840
secretID
:
AKIDGNYVChzIQinu7QEgtNp0hnNgqcV8vZTC
secretKey
:
kz15vW83qM6dBUWIq681eBZA0c0vlIbe
minio
:
minio
:
#MinIO 发送图片、视频、文件时需要,请自行申请后替换,必须修改。 客户端初始化时相应改动
bucket
:
openim
location
:
us-east-1
endpoint
:
http://127.0.0.1:9000
accessKeyID
:
minioadmin
secretAccessKey
:
minioadmin
rpcport
:
rpcport
:
#rpc服务端口 默认即可
openImUserPort
:
[
10100
]
openImFriendPort
:
[
10200
]
openImOfflineMessagePort
:
[
10300
]
...
...
@@ -114,7 +116,7 @@ rpcport:
stateChange
:
switch
:
false
rpcregistername
:
rpcregistername
:
#rpc注册服务名,默认即可
openImUserName
:
User
openImFriendName
:
Friend
openImOfflineMessageName
:
OfflineMessage
...
...
@@ -129,57 +131,57 @@ rpcregistername:
log
:
storageLocation
:
../logs/
rotationTime
:
24
remainRotationCount
:
5
remainLogLevel
:
6
remainRotationCount
:
5
#日志数量
remainLogLevel
:
6
#日志级别 6表示全都打印,测试阶段建议设置为6
elasticSearchSwitch
:
false
elasticSearchAddr
:
[
127.0.0.1
:
9201
]
elasticSearchUser
:
"
"
elasticSearchPassword
:
"
"
modulename
:
modulename
:
#日志文件按模块命名,默认即可
longConnSvrName
:
msg_gateway
msgTransferName
:
msg_transfer
pushName
:
push
longconnsvr
:
openImWsPort
:
[
17778
]
openImWsPort
:
[
17778
]
# ws服务端口,默认即可,要开放此端口或做nginx转发
websocketMaxConnNum
:
10000
websocketMaxMsgLen
:
4096
websocketTimeOut
:
10
push
:
tpns
:
tpns
:
#腾讯推送,暂未测试 暂不要使用
ios
:
accessID
:
1600018281
secretKey
:
3cd68a77a95b89e5089a1aca523f318f
android
:
accessID
:
111
secretKey
:
111
jpns
:
jpns
:
#极光推送 在极光后台申请后,修改以下四项,必须修改
appKey
:
cf47465a368f24c659608e7e
masterSecret
:
02204efe3f3832947a236ee5
pushUrl
:
"
https://api.jpush.cn/v3/push"
pushIntent
:
"
intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
manager
:
#app管理员userID和对应的secret 建议修改。 用于管理后台登录,也可以用户管理后台对应的api
appManagerUid
:
[
"
openIM123456"
,
"
openIM654321"
,
"
openIM333"
,
"
openIMAdmin"
]
secrets
:
[
"
openIM1"
,
"
openIM2"
,
"
openIM333"
,
"
openIMAdmin"
]
secret
:
tuoyun
# 多端互踢策略
# 1:多平台登录:Android、iOS、Windows、Mac 每种平台只能一个在线,web端可以多个同时在线
multiloginpolicy
:
1
#token config
tokenpolicy
:
accessSecret
:
"
open_im_server"
accessSecret
:
"
open_im_server"
#token生成相关,默认即可
# Token effective time day as a unit
accessExpire
:
7
accessExpire
:
3650
#token过期时间(天) 默认即可
messagecallback
:
messagecallback
:
#暂时不要使用 还需完善
callbackUrl
:
"
http://www.xxx.com/msg/judge"
#TimeOut use second as unit
callbackTimeOut
:
10
messagejudge
:
isJudgeFriend
:
true
# c2c:
# callbackBeforeSendMsg:
# switch: false
...
...
@@ -189,7 +191,7 @@ messagejudge:
# state:
# stateChange:
# switch: false
#ios系统推送声音以及标记计数
iospush
:
pushSound
:
"
xxx"
badgeCount
:
true
...
...
@@ -253,7 +255,7 @@ notification:
desc
:
"
groupApplicationAccepted
desc"
ext
:
"
groupApplicationAccepted
ext"
defaultTips
:
tips
:
"
was
allowed
to
join
the
group"
# group info changed by xx
tips
:
"
allowed
to
join
the
group"
# group info changed by xx
groupApplicationRejected
:
conversation
:
...
...
@@ -265,7 +267,7 @@ notification:
desc
:
"
desc"
ext
:
"
ext"
defaultTips
:
tips
:
"
was
rejected
into
the
group"
# group info changed by xx
tips
:
"
rejected
into
the
group"
# group info changed by xx
groupOwnerTransferred
:
conversation
:
...
...
@@ -289,7 +291,7 @@ notification:
desc
:
"
memberKicked
desc"
ext
:
"
memberKicked
ext"
defaultTips
:
tips
:
"
was
kicked
out
of
the
group"
# group info changed by xx
tips
:
"
kicked
out
of
the
group"
# group info changed by xx
memberInvited
:
conversation
:
...
...
@@ -301,7 +303,7 @@ notification:
desc
:
"
memberInvited
desc"
ext
:
"
memberInvited
ext"
defaultTips
:
tips
:
"
was
invited
into
the
group"
# group info changed by xx
tips
:
"
invited
into
the
group"
# group info changed by xx
memberEnter
:
conversation
:
...
...
@@ -378,11 +380,11 @@ notification:
unreadCount
:
false
offlinePush
:
switch
:
true
title
:
"
D
eleted
a
friend"
desc
:
"
D
eleted
a
friend"
ext
:
"
D
eleted
a
friend"
title
:
"
d
eleted
a
friend"
desc
:
"
d
eleted
a
friend"
ext
:
"
d
eleted
a
friend"
defaultTips
:
tips
:
"
D
eleted
a
friend"
#
tips
:
"
d
eleted
a
friend"
#
friendRemarkSet
:
...
...
@@ -405,11 +407,11 @@ notification:
unreadCount
:
false
offlinePush
:
switch
:
true
title
:
"
B
locked
a
user"
desc
:
"
B
locked
a
user"
ext
:
"
B
locked
a
user"
title
:
"
b
locked
a
user"
desc
:
"
b
locked
a
user"
ext
:
"
b
locked
a
user"
defaultTips
:
tips
:
"
B
locked
a
user"
#
tips
:
"
b
locked
a
user"
#
blackDeleted
:
...
...
@@ -435,7 +437,7 @@ notification:
desc
:
"
Remove
a
blocked
user"
ext
:
"
Remove
a
blocked
user"
defaultTips
:
tips
:
"
R
emove
a
blocked
user"
tips
:
"
r
emove
a
blocked
user"
#####################conversation#########################
conversationOptUpdate
:
...
...
@@ -454,23 +456,24 @@ notification:
#---------------demo configuration---------------------#
#The following configuration items are applied to openIM Demo configuration
#是否启动demo,如果自身没有账号体系,设置为true
demoswitch
:
true
demo
:
openImDemoPort
:
[
42233
]
alismsverify
:
accessKeyId
:
LTAI5tJPkn4HuuePdiLdGqe7
accessKeySecret
:
4n9OJ7ZCVN1U6KeHDAtOyNeVZcjOuV
signName
:
托云信息技术
verificationCodeTemplateCode
:
SMS_226810164
superCode
:
666666
openImDemoPort
:
[
42233
]
#demo对外服务端口,默认即可,需要开放此端口或做nginx转发
alismsverify
:
#阿里云短信配置,在阿里云申请成功后修改以下四项,必须修改
accessKeyId
:
LTAI5tJPkn4HuuePdiLdGqe7
1
accessKeySecret
:
4n9OJ7ZCVN1U6KeHDAtOyNeVZcjOuV
1
signName
:
OpenIM Corporation
verificationCodeTemplateCode
:
SMS_226810164
1
superCode
:
666666
#超级验证码,建议修改掉,收不到短信验证码时可以用此替代
# second
codeTTL
:
30
0
mail
:
codeTTL
:
6
0
mail
:
#仅支持qq邮箱,具体操作参考 https://service.mail.qq.com/cgi-bin/help?subtype=1&id=28&no=1001256 必须修改
title
:
"
openIM"
senderMail
:
"
765567899@qq.com"
senderAuthorizationCode
:
"
gxyausfoevlzbfag"
senderMail
:
"
1
765567899@qq.com"
senderAuthorizationCode
:
"
1
gxyausfoevlzbfag"
smtpAddr
:
"
smtp.qq.com"
smtpPort
:
25
smtpPort
:
25
#需开放此端口 出口方向
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录