From bc8baf3bcc843e80b6f30ac1b4a851e14bb81090 Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Thu, 15 Oct 2020 17:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broker/config/wildfirechat.conf | 33 +++++++------------ .../src/main/resources/wildfirechat.conf | 28 +++++----------- 2 files changed, 20 insertions(+), 41 deletions(-) diff --git a/broker/config/wildfirechat.conf b/broker/config/wildfirechat.conf index e4430e12..d23ba04a 100755 --- a/broker/config/wildfirechat.conf +++ b/broker/config/wildfirechat.conf @@ -167,39 +167,30 @@ server.multi_platform_notification false # Push server configuration #********************************************************************* ##安卓推送服务器地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.android.server.address http://localhost:8085/android/push + ##苹果推送服务器地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.ios.server.address http://localhost:8085/ios/push #********************************************************************* -# User online status event callback +# 各种事件回调 #********************************************************************* ##用户在线状态事件回调地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! #user.online_status_callback http://localhost:8888/user/online_event -#********************************************************************* -# 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 -#仅在第一次启动时会设置消息数据的过期时间,如果之后再修改将不生效。 -#如果需要修改过期时间,请修改t_messages_x和t_user_message_x的索引过期时间,修改方法请行百度 -mongodb.data_expire_days 1096 +##消息转发地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! +#message.forward.url http://localhost:8087/message/forward + +##设备信息转发地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! +#things_message.forward.url http://localhost:8087/device/forward #********************************************************************* # Sensitive configuration #********************************************************************* ##文本敏感词过滤处理方法,0 发送失败;1 发送成功但消息被服务器直接丢弃;2 命中的敏感词被替换成***;3 记录并继续发送 sensitive.filter.type 0 - -#********************************************************************* -# Message forward configuration -#********************************************************************* -##消息转发地址 -#message.forward.url http://localhost:8087/message/forward - -##设备信息转发地址 -#things_message.forward.url http://localhost:8087/device/forward diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index 7f704587..697a87d8 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -161,27 +161,24 @@ server.multi_platform_notification false # Push server configuration #********************************************************************* ##安卓推送服务器地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.android.server.address http://localhost:8085/android/push + ##苹果推送服务器地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.ios.server.address http://localhost:8085/ios/push - #********************************************************************* -# User online status event callback +# 各种事件回调 #********************************************************************* ##用户在线状态事件回调地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! #user.online_status_callback http://localhost:8888/user/online_event +##消息转发地址 +##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! +#message.forward.url http://localhost:8087/message/forward -#********************************************************************* -# 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 @@ -198,12 +195,3 @@ mongodb.data_expire_days 1096 #********************************************************************* ##文本敏感词过滤处理方法,0 发送失败;1 发送成功但消息被服务器直接丢弃;2 命中的敏感词被替换成*** sensitive.filter.type 0 - -#********************************************************************* -# Message forward configuration -#********************************************************************* -##消息转发地址 -#message.forward.url http://localhost:8087/message/forward - -##设备信息转发地址 -#device.forward.url http://localhost:8087/device/forward