config.yaml 2.8 KB
Newer Older
落凡尘.'s avatar
落凡尘. 已提交
1 2 3 4 5 6 7
# 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.

#---------------Infrastructure configuration---------------------#
etcd:
  etcdSchema: openIM
落凡尘.'s avatar
落凡尘. 已提交
8
  etcdAddr: [ 127.0.0.1:2379 ]
落凡尘.'s avatar
落凡尘. 已提交
9 10

mysql:
落凡尘.'s avatar
落凡尘. 已提交
11
  dbAddress: [ 127.0.0.1:3306 ]
落凡尘.'s avatar
落凡尘. 已提交
12 13 14 15 16 17 18 19 20 21
  dbUserName: root
  dbPassword: 123456
  dbDatabaseName: openIM
  dbTableName: eMsg
  dbMsgTableNum: 1
  dbMaxOpenConns: 20
  dbMaxIdleConns: 10
  dbMaxLifeTime: 120

mongo:
落凡尘.'s avatar
落凡尘. 已提交
22
  dbAddress: [ 127.0.0.1:27017 ]
落凡尘.'s avatar
落凡尘. 已提交
23 24 25 26 27 28 29 30 31 32
  dbDirect: false
  dbTimeout: 10
  dbDatabase: [ openIM ]
  dbSource: admin
  dbUserName:
  dbPassword:
  dbMaxPoolSize: 20
  dbRetainChatRecords: 7

redis:
落凡尘.'s avatar
落凡尘. 已提交
33
  dbAddress: [ 127.0.0.1:6379 ]
落凡尘.'s avatar
落凡尘. 已提交
34 35 36 37 38 39 40
  dbMaxIdle: 128
  dbMaxActive: 0
  dbIdleTimeout: 120
  dbPassWord: open_im4545453

kafka:
  ws2mschat:
落凡尘.'s avatar
落凡尘. 已提交
41
    addr: [ 127.0.0.1:9092 ]
落凡尘.'s avatar
落凡尘. 已提交
42 43
    topic: "ws2ms_chat"
  ms2pschat:
落凡尘.'s avatar
落凡尘. 已提交
44
    addr: [ 127.0.0.1:9092 ]
落凡尘.'s avatar
落凡尘. 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    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
serverip:

api:
  openImApiPort: [ 10000 ]

credential:
  tencent:
    appID: 1302656840
    region: ap-chengdu
    bucket: echat-1302656840
    secretID: AKIDGNYVChzIQinu7QEgtNp0hnNgqcV8vZTC
    secretKey: kz15vW83qM6dBUWIq681eBZA0c0vlIbe


rpcport:
  openImUserPort: [ 10100,10101 ]
  openImFriendPort: [ 10200,10201 ]
  openImOfflineMessagePort: [ 10300 ]
  openImOnlineRelayPort: [ 10400 ]
  openImGroupPort: [ 10500 ,10501 ]
  openImAuthPort: [ 10600, 10601 ]
  openImPushPort: [ 10700 ]


rpcregistername:
  openImUserName: User
  openImFriendName: Friend
  openImOfflineMessageName: OfflineMessage
  openImPushName: Push
  openImOnlineMessageRelayName: OnlineMessageRelay
  openImGroupName: Group
  rpcGetTokenName: Auth

log:
  storageLocation: ../logs/
  elasticSearchSwitch: false
  elasticSearchAddr: [ 47.112.160.66:9201 ]
  elasticSearchUser: ""
  elasticSearchPassword: ""

modulename:
  longConnSvrName: msg_gateway
  msgTransferName: msg_transfer
  pushName: push

longconnsvr:
  websocketPort: [ 7778 ]
  websocketMaxConnNum: 10000
  websocketMaxMsgLen: 4096
  websocketTimeOut: 10

push:
  tpns:
    ios:
      accessID: 1600018281
      secretKey: 3cd68a77a95b89e5089a1aca523f318f
    android:
      accessID: 111
      secretKey: 111

secret: tuoyun

multiloginpolicy:
  onlyOneTerminalAccess: false
  mobileAndPCTerminalAccessButOtherTerminalKickEachOther: true
  allTerminalAccess: false

#token config
tokenpolicy:
  accessSecret: "open_im_server"
  # Token effective time seconds as a unit
  #Seven days   7*24*60*60
  accessExpire: 604800