Skip to content

Commit

Permalink
代码优化,配置文件增加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
夜色 committed Jun 9, 2018
1 parent caf59a6 commit 4ab5112
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions conf/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
# 如果要覆盖某项的值可以添加到mpush.conf中。
#
# 配置文件格式采用HOCON格式。解析库由https://github.com/typesafehub/config提供。
# 具体可参照器说明文档,比如含有特殊字符的字符串必须用双引号包起来。
# 具体可参照说明文档,比如含有特殊字符的字符串必须用双引号包起来。
#
##################################################################################################################

mp {
#基础配置
home=${user.dir} //程序工作目前
home=${user.dir} //程序工作目录

#日志配置
log-level=warn
Expand Down Expand Up @@ -120,7 +120,7 @@ mp {

#Zookeeper配置
zk {
server-address="127.0.0.1:2181"
server-address="127.0.0.1:2181" //多台机器使用","分隔如:"10.0.10.44:2181,10.0.10.49:2181" @see org.apache.zookeeper.ZooKeeper#ZooKeeper()
namespace=mpush
digest=mpush //zkCli.sh acl 命令 addauth digest mpush
watch-path=/
Expand All @@ -138,10 +138,10 @@ mp {

#Redis集群配置
redis {
cluster-model=single//single,cluster,sentinel
password=""//your password
nodes:[]//["127.0.0.1:6379"]格式ip:port:password,密码可以不设置ip:port
cluster-model=single //single,cluster,sentinel
sentinel-master:""
nodes:[] s//["127.0.0.1:6379"]格式ip:port
password="" //your password
config {
maxTotal:8,
maxIdle:4,
Expand Down Expand Up @@ -189,7 +189,7 @@ mp {
event-bus { //用户处理内部事件分发
min:1
max:16
queue-size:10000 //大量的online,offline
queue-size:10000 //大量的online,offline
}

mq { //用户上下线消息, 踢人等
Expand Down
2 changes: 1 addition & 1 deletion mpush-test/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mp.log-conf-path=logback.xml
mp.core.min-heartbeat=30s
mp.core.max-heartbeat=30s
mp.core.compress-threshold=10k
mp.zk.server-address="127.0.0.1:2181"
mp.zk.server-address="127.0.0.1:2181" //多台机器使用","分隔如:"10.0.10.44:2181,10.0.10.49:2181"
mp.redis {// redis 集群配置
nodes:["127.0.0.1:6379"]//格式是ip:port,密码可以没有ip:port
}
Expand Down

0 comments on commit 4ab5112

Please sign in to comment.