sync with commercial
This commit is contained in:
@@ -49,6 +49,8 @@ maven-metadata.xml
|
|||||||
/bin/
|
/bin/
|
||||||
broker/config/git.properties
|
broker/config/git.properties
|
||||||
distribution/src/main/resources/git.properties
|
distribution/src/main/resources/git.properties
|
||||||
|
license/target
|
||||||
|
server/target
|
||||||
broker/h2db
|
broker/h2db
|
||||||
broker/media
|
broker/media
|
||||||
common/target
|
common/target
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
#服务器的接入IP。给客户端提供是${server.ip}和${http_port}。
|
#服务器的接入IP。给客户端提供是${server.ip}和${http_port}。
|
||||||
#客户端会从${http_port}端口获取到长链接端口。
|
#客户端会从${http_port}端口获取到长链接端口。
|
||||||
server.ip 192.168.1.100
|
server.ip 0.0.0.0
|
||||||
|
|
||||||
##原生客户端长链接端口
|
##原生客户端长链接端口
|
||||||
port 1883
|
port 1883
|
||||||
@@ -26,7 +26,7 @@ host 0.0.0.0
|
|||||||
##本地绑定端口
|
##本地绑定端口
|
||||||
local_port 80
|
local_port 80
|
||||||
|
|
||||||
##是否使用内置DB。0使用mysql;1使用h2db
|
##是否使用内置DB。0使用mysql;1使用h2db;2使用mysql+mongodb。社区版只支持0和1,专业版支持2
|
||||||
embed.db 0
|
embed.db 0
|
||||||
|
|
||||||
##服务器管理接口密钥
|
##服务器管理接口密钥
|
||||||
@@ -98,6 +98,16 @@ push.android.server.address http://localhost:8085/android/push
|
|||||||
push.ios.server.address http://localhost:8085/ios/push
|
push.ios.server.address http://localhost:8085/ios/push
|
||||||
|
|
||||||
|
|
||||||
|
#*********************************************************************
|
||||||
|
# MongoDB configuration
|
||||||
|
#*********************************************************************
|
||||||
|
#专业版支持,社区版请忽略
|
||||||
|
#mongodb.client_uri mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
|
||||||
|
#mongodb.client_uri mongodb://host1:27017,host2:27017,host3:27017/wfchat?replicaSet=myReplicaSet
|
||||||
|
mongodb.client_uri mongodb://wfc:123456@localhost:27017/wfchat
|
||||||
|
mongodb.database wfchat
|
||||||
|
mongodb.data_expire_days 1096
|
||||||
|
|
||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
# Sensitive configuration
|
# Sensitive configuration
|
||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
|
|||||||
@@ -233,6 +233,11 @@
|
|||||||
<version>5.2.4</version>
|
<version>5.2.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mongodb</groupId>
|
||||||
|
<artifactId>mongo-java-driver</artifactId>
|
||||||
|
<version>3.4.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,10 @@ public final class BrokerConstants {
|
|||||||
|
|
||||||
public static final String MESSAGE_Forward_Url = "message.forward.url";
|
public static final String MESSAGE_Forward_Url = "message.forward.url";
|
||||||
|
|
||||||
|
public static final String MONGODB_Client_URI = "mongodb.client_uri";
|
||||||
|
public static final String MONGODB_Database = "mongodb.database";
|
||||||
|
public static final String MONGODB_Data_Expire_Days = "mongodb.data_expire_days";
|
||||||
|
|
||||||
public static final String MESSAGE_ROAMING = "message.roaming";
|
public static final String MESSAGE_ROAMING = "message.roaming";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ host 0.0.0.0
|
|||||||
##本地绑定端口
|
##本地绑定端口
|
||||||
local_port 80
|
local_port 80
|
||||||
|
|
||||||
##是否使用内置DB。0使用mysql;1使用h2db
|
##是否使用内置DB。0使用mysql;1使用h2db;2使用mysql+mongodb。社区版只支持0和1,专业版支持2
|
||||||
embed.db 1
|
embed.db 1
|
||||||
|
|
||||||
##服务器管理接口密钥
|
##服务器管理接口密钥
|
||||||
@@ -99,6 +99,15 @@ push.android.server.address http://localhost:8085/android/push
|
|||||||
##苹果推送服务器地址
|
##苹果推送服务器地址
|
||||||
push.ios.server.address http://localhost:8085/ios/push
|
push.ios.server.address http://localhost:8085/ios/push
|
||||||
|
|
||||||
|
#*********************************************************************
|
||||||
|
# MongoDB configuration
|
||||||
|
#*********************************************************************
|
||||||
|
#专业版支持,社区版请忽略
|
||||||
|
#mongodb.client_uri mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
|
||||||
|
#mongodb.client_uri mongodb://host1:27017,host2:27017,host3:27017/wfchat?replicaSet=myReplicaSet
|
||||||
|
mongodb.client_uri mongodb://wfc:123456@localhost:27017/wfchat
|
||||||
|
mongodb.database wfchat
|
||||||
|
mongodb.data_expire_days 1096
|
||||||
|
|
||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
# Netty Configuration
|
# Netty Configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user