update config

pull/31/head
skiffer-git 4 years ago committed by GitHub
parent 8e24ab7c27
commit 68f50c23e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,142 +1,146 @@
# The class cannot be named by Pascal or camel case. # The class cannot be named by Pascal or camel case.
# If it is not used, the corresponding structure will not be set, # If it is not used, the corresponding structure will not be set,
# and it will not be read naturally. # and it will not be read naturally.
serverversion: 1.0.0
#---------------Infrastructure configuration---------------------# #---------------Infrastructure configuration---------------------#
etcd: etcd:
etcdSchema: openIM etcdSchema: openIM
etcdAddr: [ 127.0.0.1:2379 ] etcdAddr: [ 127.0.0.1:2379 ]
mysql: mysql:
dbMysqlAddress: [ 127.0.0.1:3306 ] dbMysqlAddress: [ 127.0.0.1:3306 ]
dbMysqlUserName: root dbMysqlUserName: root
dbMysqlPassword: openIM dbMysqlPassword: openIM
dbMysqlDatabaseName: openIM dbMysqlDatabaseName: openIM
dbTableName: eMsg dbTableName: eMsg
dbMsgTableNum: 1 dbMsgTableNum: 1
dbMaxOpenConns: 20 dbMaxOpenConns: 20
dbMaxIdleConns: 10 dbMaxIdleConns: 10
dbMaxLifeTime: 120 dbMaxLifeTime: 120
mongo: mongo:
dbAddress: [ 127.0.0.1:27017 ] dbAddress: [ 127.0.0.1:27017 ]
dbDirect: false dbDirect: false
dbTimeout: 10 dbTimeout: 10
dbDatabase: openIM dbDatabase: openIM
dbSource: admin dbSource: admin
dbUserName: dbUserName:
dbPassword: dbPassword:
dbMaxPoolSize: 20 dbMaxPoolSize: 20
dbRetainChatRecords: 7 dbRetainChatRecords: 7
redis: redis:
dbAddress: 127.0.0.1:6379 dbAddress: 127.0.0.1:6379
dbMaxIdle: 128 dbMaxIdle: 128
dbMaxActive: 0 dbMaxActive: 0
dbIdleTimeout: 120 dbIdleTimeout: 120
dbPassWord: openIM dbPassWord: openIM
kafka: kafka:
ws2mschat: ws2mschat:
addr: [ 127.0.0.1:9092 ] addr: [ 127.0.0.1:9092 ]
topic: "ws2ms_chat" topic: "ws2ms_chat"
ms2pschat: ms2pschat:
addr: [ 127.0.0.1:9092 ] addr: [ 127.0.0.1:9092 ]
topic: "ms2ps_chat" topic: "ms2ps_chat"
consumergroupid: consumergroupid:
msgToMongo: mongo msgToMongo: mongo
msgToMySql: mysql msgToMySql: mysql
msgToPush: push msgToPush: push
#---------------Internal service configuration---------------------# #---------------Internal service configuration---------------------#
# The service ip default is empty, # The service ip default is empty,
# automatically obtain the machine's valid network card ip as the service ip, # automatically obtain the machine's valid network card ip as the service ip,
# otherwise the configuration ip is preferred # otherwise the configuration ip is preferred
serverip: serverip:
api: api:
openImApiPort: [ 10000 ] openImApiPort: [ 10000 ]
sdk: sdk:
openImSdkWsPort: [ 30000 ] openImSdkWsPort: [ 30000 ]
credential: credential:
tencent: tencent:
appID: 1302656840 appID: 1302656840
region: ap-chengdu region: ap-chengdu
bucket: echat-1302656840 bucket: echat-1302656840
secretID: AKIDGNYVChzIQinu7QEgtNp0hnNgqcV8vZTC secretID: AKIDGNYVChzIQinu7QEgtNp0hnNgqcV8vZTC
secretKey: kz15vW83qM6dBUWIq681eBZA0c0vlIbe secretKey: kz15vW83qM6dBUWIq681eBZA0c0vlIbe
rpcport: rpcport:
openImUserPort: [ 10100 ] openImUserPort: [ 10100 ]
openImFriendPort: [ 10200 ] openImFriendPort: [ 10200 ]
openImOfflineMessagePort: [ 10300 ] openImOfflineMessagePort: [ 10300 ]
openImOnlineRelayPort: [ 10400 ] openImOnlineRelayPort: [ 10400 ]
openImGroupPort: [ 10500 ] openImGroupPort: [ 10500 ]
openImAuthPort: [ 10600 ] openImAuthPort: [ 10600 ]
openImPushPort: [ 10700 ] openImPushPort: [ 10700 ]
rpcregistername: rpcregistername:
openImUserName: User openImUserName: User
openImFriendName: Friend openImFriendName: Friend
openImOfflineMessageName: OfflineMessage openImOfflineMessageName: OfflineMessage
openImPushName: Push openImPushName: Push
openImOnlineMessageRelayName: OnlineMessageRelay openImOnlineMessageRelayName: OnlineMessageRelay
openImGroupName: Group openImGroupName: Group
openImAuthName: Auth openImAuthName: Auth
log: log:
storageLocation: ../logs/ storageLocation: ../logs/
rotationTime: 24 rotationTime: 24
remainRotationCount: 5 remainRotationCount: 5
remainLogLevel: 6 remainLogLevel: 6
elasticSearchSwitch: false elasticSearchSwitch: false
elasticSearchAddr: [ 127.0.0.1:9201 ] elasticSearchAddr: [ 127.0.0.1:9201 ]
elasticSearchUser: "" elasticSearchUser: ""
elasticSearchPassword: "" elasticSearchPassword: ""
modulename: modulename:
longConnSvrName: msg_gateway longConnSvrName: msg_gateway
msgTransferName: msg_transfer msgTransferName: msg_transfer
pushName: push pushName: push
longconnsvr: longconnsvr:
openImWsPort: [ 17778 ] openImWsPort: [ 17778 ]
websocketMaxConnNum: 10000 websocketMaxConnNum: 10000
websocketMaxMsgLen: 4096 websocketMaxMsgLen: 4096
websocketTimeOut: 10 websocketTimeOut: 10
push: push:
tpns: tpns:
ios: ios:
accessID: 1600018281 accessID: 1600018281
secretKey: 3cd68a77a95b89e5089a1aca523f318f secretKey: 3cd68a77a95b89e5089a1aca523f318f
android: android:
accessID: 111 accessID: 111
secretKey: 111 secretKey: 111
manager: jpns:
appManagerUid: ["openIM123456","openIM654321"] appKey: 2783339cee4de379cc798fe1
secrets: ["openIM1","openIM2"] masterSecret: 66e5f309e032c68cc668c28a
pushUrl: "https://api.jpush.cn/v3/push"
secret: tuoyun manager:
appManagerUid: ["openIM123456","openIM654321"]
multiloginpolicy: secrets: ["openIM1","openIM2"]
onlyOneTerminalAccess: false
mobileAndPCTerminalAccessButOtherTerminalKickEachOther: true secret: tuoyun
allTerminalAccess: false
multiloginpolicy:
#token config onlyOneTerminalAccess: false
tokenpolicy: mobileAndPCTerminalAccessButOtherTerminalKickEachOther: true
accessSecret: "open_im_server" allTerminalAccess: false
# Token effective time seconds as a unit
#Seven days 7*24*60*60 #token config
accessExpire: 604800 tokenpolicy:
accessSecret: "open_im_server"
messagecallback: # Token effective time seconds as a unit
callbackSwitch: false #Seven days 7*24*60*60
accessExpire: 604800
messagecallback:
callbackSwitch: false
callbackUrl: "http://www.xxx.com/msg/judge" callbackUrl: "http://www.xxx.com/msg/judge"
Loading…
Cancel
Save