You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/config/config.yaml

447 lines
10 KiB

4 years ago
# The class cannot be named by Pascal or camel case.
# If it is not used, the corresponding structure will not be set,
# and it will not be read naturally.
3 years ago
serverversion: 1.0.3
4 years ago
#---------------Infrastructure configuration---------------------#
etcd:
etcdSchema: openIM
4 years ago
etcdAddr: [ 127.0.0.1:2379 ]
3 years ago
4 years ago
mysql:
3 years ago
dbMysqlAddress: [ 127.0.0.1:13306 ]
dbMysqlUserName: root
3 years ago
dbMysqlPassword: openIM
dbMysqlDatabaseName: openIM
4 years ago
dbTableName: eMsg
dbMsgTableNum: 1
dbMaxOpenConns: 20
dbMaxIdleConns: 10
dbMaxLifeTime: 120
mongo:
3 years ago
dbAddress: [ 127.0.0.1:37017 ]
4 years ago
dbDirect: false
dbTimeout: 10
3 years ago
dbDatabase: openIM
4 years ago
dbSource: admin
3 years ago
dbUserName:
dbPassword:
4 years ago
dbMaxPoolSize: 20
dbRetainChatRecords: 7
redis:
3 years ago
dbAddress: 127.0.0.1:16379
4 years ago
dbMaxIdle: 128
dbMaxActive: 0
dbIdleTimeout: 120
3 years ago
dbPassWord: openIM
4 years ago
kafka:
ws2mschat:
4 years ago
addr: [ 127.0.0.1:9092 ]
4 years ago
topic: "ws2ms_chat"
ms2pschat:
4 years ago
addr: [ 127.0.0.1:9092 ]
4 years ago
topic: "ms2ps_chat"
consumergroupid:
msgToMongo: mongo
msgToMySql: mysql
msgToPush: push
#---------------Internal service configuration---------------------#
# 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
3 years ago
serverip: 0.0.0.0
4 years ago
# endpoints 内部组件间访问的端点host名称访问时可以内部直接访问 host:port 来访问
endpoints:
api: openim_api
push: openim_push
msg_gateway: openim_msg_gateway
rpc_auth: openim_rpc_auth
rpc_friend: openim_rpc_friend
rpc_group: openim_rpc_group
rpc_msg: openim_rpc_msg
rpc_user: openim_rpc_user
3 years ago
api:
4 years ago
openImApiPort: [ 10000 ]
sdk:
openImSdkWsPort: [ 30000 ]
4 years ago
credential:
tencent:
appID: 1302656840
region: ap-chengdu
bucket: echat-1302656840
secretID: AKIDGNYVChzIQinu7QEgtNp0hnNgqcV8vZTC
secretKey: kz15vW83qM6dBUWIq681eBZA0c0vlIbe
rpcport:
openImUserPort: [ 10100 ]
openImFriendPort: [ 10200 ]
3 years ago
openImOfflineMessagePort: [ 10300 ]
4 years ago
openImOnlineRelayPort: [ 10400 ]
3 years ago
openImGroupPort: [ 10500 ]
openImAuthPort: [ 10600 ]
4 years ago
openImPushPort: [ 10700 ]
3 years ago
c2c:
callbackBeforeSendMsg:
switch: false
timeoutStrategy: 1 #1:send
callbackAfterSendMsg:
switch: false
state:
stateChange:
switch: false
4 years ago
rpcregistername:
openImUserName: User
openImFriendName: Friend
openImOfflineMessageName: OfflineMessage
openImPushName: Push
openImOnlineMessageRelayName: OnlineMessageRelay
openImGroupName: Group
openImAuthName: Auth
4 years ago
log:
storageLocation: ../logs/
rotationTime: 24
remainRotationCount: 5
remainLogLevel: 6
4 years ago
elasticSearchSwitch: false
3 years ago
elasticSearchAddr: [ 127.0.0.1:9201 ]
4 years ago
elasticSearchUser: ""
elasticSearchPassword: ""
modulename:
longConnSvrName: msg_gateway
msgTransferName: msg_transfer
pushName: push
longconnsvr:
openImWsPort: [ 17778 ]
4 years ago
websocketMaxConnNum: 10000
websocketMaxMsgLen: 4096
websocketTimeOut: 10
push:
tpns:
ios:
accessID: 1600018281
secretKey: 3cd68a77a95b89e5089a1aca523f318f
android:
accessID: 111
secretKey: 111
jpns:
appKey: cf47465a368f24c659608e7e
masterSecret: 02204efe3f3832947a236ee5
pushUrl: "https://api.jpush.cn/v3/push"
3 years ago
pushIntent: "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
manager:
3 years ago
appManagerUid: [ "openIM123456","openIM654321" ]
secrets: [ "openIM1","openIM2" ]
4 years ago
secret: tuoyun
multiloginpolicy: 1
4 years ago
#token config
tokenpolicy:
accessSecret: "open_im_server"
# Token effective time day as a unit
accessExpire: 7
messagecallback:
callbackUrl: "http://www.xxx.com/msg/judge"
#TimeOut use second as unit
3 years ago
callbackTimeOut: 10
3 years ago
# c2c:
# callbackBeforeSendMsg:
# switch: false
# timeoutStrategy: 1 #1:send
# callbackAfterSendMsg:
# switch: false
# state:
# stateChange:
# switch: false
3 years ago
iospush:
pushSound: "xxx"
3 years ago
badgeCount: true
notification:
groupCreated:
conversation:
3 years ago
reliabilityLevel: 3
3 years ago
unreadCount: true
offlinePush:
switch: true
3 years ago
title: "create group title" # xx create the group
desc: "create group desc"
ext: "create group ext"
defaultTips:
tips: "create the group" # xx create the group
3 years ago
groupInfoSet:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "groupInfoSet title"
desc: "groupInfoSet desc"
ext: "groupInfoSet ext"
3 years ago
defaultTips:
3 years ago
tips: "modified the group profile" # group info changed by xx
3 years ago
joinGroupApplication:
conversation:
3 years ago
reliabilityLevel: 2
3 years ago
unreadCount: false
offlinePush:
switch: false
3 years ago
title: "joinGroupApplication title"
desc: "joinGroupApplication desc"
ext: "joinGroupApplication ext"
3 years ago
defaultTips:
3 years ago
tips: "apply to join the group" # group info changed by xx
3 years ago
memberQuit:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "memberQuit title"
desc: "memberQuit desc"
ext: "memberQuit ext"
3 years ago
defaultTips:
3 years ago
tips: "quit group chat" # group info changed by xx
3 years ago
groupApplicationAccepted:
conversation:
3 years ago
reliabilityLevel: 2
3 years ago
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "groupApplicationAccepted title"
desc: "groupApplicationAccepted desc"
ext: "groupApplicationAccepted ext"
3 years ago
defaultTips:
3 years ago
tips: "was allowed to join the group" # group info changed by xx
3 years ago
groupApplicationRejected:
conversation:
3 years ago
reliabilityLevel: 2
3 years ago
unreadCount: false
offlinePush:
switch: false
3 years ago
title: " title"
desc: " desc"
ext: " ext"
3 years ago
defaultTips:
3 years ago
tips: "was rejected into the group" # group info changed by xx
3 years ago
groupOwnerTransferred:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "groupOwnerTransferred title"
desc: "groupOwnerTransferred desc"
ext: "groupOwnerTransferred ext"
3 years ago
defaultTips:
3 years ago
tips: "become a new group owner" # group info changed by xx
3 years ago
3 years ago
memberKicked:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
offlinePush:
3 years ago
switch: false
3 years ago
title: "memberKicked title"
desc: "memberKicked desc"
ext: "memberKicked ext"
defaultTips:
3 years ago
tips: "was kicked out of the group" # group info changed by xx
3 years ago
3 years ago
memberInvited:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "memberInvited title"
desc: "memberInvited desc"
ext: "memberInvited ext"
3 years ago
defaultTips:
3 years ago
tips: "was invited into the group" # group info changed by xx
3 years ago
memberEnter:
conversation:
3 years ago
reliabilityLevel: 3
unreadCount: true
3 years ago
offlinePush:
switch: false
3 years ago
title: "memberEnter title"
desc: "memberEnter desc"
ext: "memberEnter ext"
3 years ago
defaultTips:
3 years ago
tips: "entered the group" # group info changed by xx
3 years ago
#############################friend#################################
3 years ago
friendApplicationAdded:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Somebody applies to add you as a friend"
desc: "Somebody applies to add you as a friend"
ext: "Somebody applies to add you as a friend"
defaultTips:
tips: "I applies to add you as a friend" #
3 years ago
friendApplicationApproved:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Someone applies to add your friend application"
desc: "Someone applies to add your friend application"
ext: "Someone applies to add your friend application"
defaultTips:
tips: "I applies to add your friend application" #
3 years ago
friendApplicationRejected:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Someone rejected your friend application"
desc: "Someone rejected your friend application"
ext: "Someone rejected your friend application"
defaultTips:
tips: "I rejected your friend application" #
3 years ago
friendAdded:
3 years ago
conversation:
reliabilityLevel: 3
unreadCount: true
offlinePush:
switch: true
title: "We have become friends"
desc: "We have become friends"
ext: "We have become friends"
defaultTips:
tips: "We have become friends" #
3 years ago
friendDeleted:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Deleted a friend"
desc: "Deleted a friend"
ext: "Deleted a friend"
defaultTips:
tips: "Deleted a friend" #
3 years ago
friendRemarkSet:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Your friend's profile has been changed"
desc: "Your friend's profile has been changed"
ext: "Your friend's profile has been changed"
defaultTips:
tips: "Your friend's profile has been changed" #
3 years ago
blackAdded:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Blocked a user"
desc: "Blocked a user"
ext: "Blocked a user"
defaultTips:
tips: "Blocked a user" #
3 years ago
blackDeleted:
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Remove a blocked user"
desc: "Remove a blocked user"
ext: "Remove a blocked user"
defaultTips:
tips: "Remove a blocked user"
#####################user#########################
userInfoUpdated:
3 years ago
conversation:
reliabilityLevel: 2
unreadCount: false
offlinePush:
switch: true
title: "Remove a blocked user"
desc: "Remove a blocked user"
ext: "Remove a blocked user"
defaultTips:
tips: "Remove a blocked user"
3 years ago
3 years ago
#---------------demo configuration---------------------#
#The following configuration items are applied to openIM Demo configuration
demoswitch: true
demo:
openImDemoPort: [ 42233 ]
alismsverify:
accessKeyId: LTAI5tJPkn4HuuePdiLdGqe71
accessKeySecret: 4n9OJ7ZCVN1U6KeHDAtOyNeVZcjOuV1
signName: OpenIM Corporation
verificationCodeTemplateCode: SMS_2268101641
superCode: 666666
3 years ago
# second
superCodeTTL: 60
mail:
title: "openIM"
3 years ago
senderMail: "1765567899@qq.com"
senderAuthorizationCode: "1gxyausfoevlzbfag"
smtpAddr: "smtp.qq.com"
smtpPort: 25