superdesk-app-services-notify-test.properties 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. #use local config
  2. spring.profiles.active=simple
  3. spring.application.name=superdesk-app-services-notify
  4. server.port=8115
  5. server.servlet.context-path=/
  6. server.error.whitelabel.enabled=false
  7. feign.client.config.default.loggerLevel=full
  8. #mybatis
  9. mybatis.type-aliases-package=cn.superdesk.app.core.dao.entity,cn.superdesk.app.common.dao.entity,cn.superdesk.app.organisation.dao.entity
  10. mybatis.mapper-locations=classpath*:mapper/*Mapper.xml
  11. eureka.instance.preferIpAddress=true
  12. eureka.instance.instanceId=${spring.cloud.client.ip-address}:${spring.application.name}-1.0.0:${server.port}
  13. eureka.instance.metadataMap.nodeId=${client.nodeId}
  14. # [spring kafka]
  15. spring.kafka.bootstrap-servers=172.18.223.211:9092
  16. # 检测到topic不存在时,是否抛出异常
  17. spring.kafka.listener.missing-topics-fatal=false
  18. spring.kafka.consumer.group-id=superdesk-app-services-notify
  19. #### kafka配置生产者 begin ####
  20. # 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
  21. # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
  22. spring.kafka.producer.retries=0
  23. # 每次批量发送消息的数量,produce积累到一定数据,一次发送
  24. spring.kafka.producer.batch-size=16384
  25. # produce积累数据一次发送,缓存大小达到buffer.memory就发送数据,producer可以用来缓存数据的内存大小。如果数据产生速度大于向broker发送的速度,producer会阻塞或者抛出异常,以“block.on.buffer.full”来表明。这项设置将和producer能够使用的总内存相关,但并不是一个硬性的限制,因为不是producer使用的所有内存都是用于缓存。一些额外的内存会用于压缩(如果引入压缩机制),同样还有一些用于维护请求。
  26. spring.kafka.producer.buffer-memory=33554432
  27. #procedure要求leader在考虑完成请求之前收到的确认数,用于控制发送记录在服务端的持久化,其值可以为如下:
  28. #acks = 0 如果设置为零,则生产者将不会等待来自服务器的任何确认,该记录将立即添加到套接字缓冲区并视为已发送。在这种情况下,无法保证服务器已收到记录,并且重试配置将不会生效(因为客户端通常不会知道任何故障),为每条记录返回的偏移量始终设置为-1。
  29. #acks = 1 这意味着leader会将记录写入其本地日志,但无需等待所有副本服务器的完全确认即可做出回应,在这种情况下,如果leader在确认记录后立即失败,但在将数据复制到所有的副本服务器之前,则记录将会丢失。
  30. #acks = all 这意味着leader将等待完整的同步副本集以确认记录,这保证了只要至少一个同步副本服务器仍然存活,记录就不会丢失,这是最强有力的保证,这相当于acks = -1的设置。
  31. #可以设置的值为:all, -1, 0, 1
  32. spring.kafka.producer.acks=1
  33. # 指定消息key和消息体的编解码方式
  34. spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
  35. spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
  36. # sasl
  37. #spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="java_connect_kafka" password="java_connect_kafka_pwd";
  38. #spring.kafka.producer.properties.sasl.mechanism=PLAIN
  39. #spring.kafka.producer.properties.security.protocol=SASL_PLAINTEXT
  40. #
  41. #### kafka配置生产者 end ####
  42. #### kafka配置消费者 start ####
  43. # Kafka中没有初始偏移或如果当前偏移在服务器上不再存在时,默认区最新 ,有三个选项 【latest, earliest, none】
  44. # smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest
  45. #spring.kafka.consumer.auto-offset-reset=earliest
  46. spring.kafka.consumer.auto-offset-reset=latest
  47. # 是否开启自动提交 # enable.auto.commit:true --> 设置自动提交offset
  48. spring.kafka.consumer.enable-auto-commit=true
  49. # 自动提交的时间间隔 如果'enable.auto.commit'为true,则消费者偏移自动提交给Kafka的频率(以毫秒为单位),默认值为5000。
  50. spring.kafka.consumer.auto-commit-interval=1000
  51. # 指定消息key和消息体的编解码方式
  52. # key的解码方式
  53. spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
  54. # value的解码方式
  55. spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer
  56. # [kafka topic]
  57. # KAFKA TOPIC 短信消费
  58. superdesk.kafka.topic.fwzc.msg-test=supdesk-msg-test
  59. # 微信模板消息
  60. superdesk.kafka.topic.notify.wxTemplateMessage=superdesk-notify-wxTemplateMessage
  61. # 小程序订阅消息
  62. superdesk.kafka.topic.notify.wxMiniProSubscribeMessage=superdesk-notify-wxSubscribeMessage
  63. # 收款成功通知
  64. superdesk.kafka.topic.notify.successfulCollection=superdesk-notify-successfulCollection
  65. # app消息推送
  66. superdesk.kafka.topic.notify.appMessagePush=superdesk-notify-appMessagePush
  67. # app自定义消息(提示音)推送
  68. superdesk.kafka.topic.notify.customAppMessagePush=superdesk-notify-customAppMessagePush
  69. info.app.name=@project.artifactId@
  70. info.app.version=@project.version@
  71. #spring
  72. spring.jackson.time-zone=GMT+8
  73. spring.http.encoding.charset=UTF-8
  74. spring.http.encoding.force=true
  75. spring.http.encoding.enabled=true
  76. server.tomcat.uri-encoding=UTF-8
  77. auth.crypt.key=U48Y4F1AwUADW24mLVIZtih3gt9bvW0
  78. #wei xin di zhi
  79. wx.hostUrl=https://superdesk-app-test.superdesk.cn
  80. #wei xin gong gao di zhi
  81. wx.wxAppNoticeUrl=/wx/main/?state=8#/home/@id
  82. #wei xin shen he di zhi mobile
  83. wx.wxMsgAuditUrl=/appmobile
  84. #wei xin di zhi mobile
  85. wx.wxMsgUrl=/mobile
  86. superdesk.cache.mode=standalone
  87. #superdesk.cache.groupName=
  88. superdesk.cache.servers=127.0.0.1:6379
  89. superdesk.cache.password=
  90. superdesk.cache.database=1
  91. superdesk.cache.maxPoolSize=10000
  92. superdesk.cache.maxPoolIdle=10
  93. superdesk.cache.minPoolIdle=1
  94. superdesk.cache.maxPoolWaitMillis=10000
  95. swagger.enable=true
  96. #datasource
  97. db.group.size=1
  98. db.shard.size=1000
  99. db.driverClass=com.mysql.jdbc.Driver
  100. db.initialSize=2
  101. db.minIdle=1
  102. db.maxActive=50
  103. db.maxWait=60000
  104. db.timeBetweenEvictionRunsMillis=60000
  105. db.minEvictableIdleTimeMillis=300000
  106. db.testOnBorrow=true
  107. db.testOnReturn=false
  108. master.db.url=jdbc:mysql://112.74.48.214:53307/super_service_new_bak?allowMultiQueries=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&useSSL=false
  109. master.db.username=root
  110. master.db.password=service_newbak2019
  111. #mybatis
  112. superdesk.mybatis.crudDriver=mapper3
  113. #superdesk.mybatis.dbType=Mysql
  114. superdesk.mybatis.cacheEnabled=true
  115. #superdesk.mybatis.cacheEnabled=false
  116. superdesk.mybatis.dynamicExpire=false
  117. superdesk.mybatis.cacheExpireSeconds=3600
  118. #superdesk.mybatis.rwRouteEnabled=false
  119. superdesk.mybatis.paginationEnabled=true
  120. mybatis.configuration.map-underscore-to-camel-case=true
  121. #eureka
  122. eureka.client.service-url.defaultZone=http://superdesk:superdesk2019@127.0.0.1:19991/eureka/
  123. eureka.client.registry-fetch-interval-seconds=5
  124. eureka.instance.lease-expiration-duration-in-seconds=30
  125. eureka.instance.lease-renewal-interval-in-seconds=10
  126. #hystrix
  127. hystrix.command.default.execution.timeout.enabled=true
  128. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
  129. #ribbon
  130. ribbon.eureka.enabled=true
  131. ribbon.ServerListRefreshInterval=2000
  132. ribbon.ConnectTimeout = 2000
  133. ribbon.ReadTimeout = 10000
  134. ribbon.OkToRetryOnAllOperations=false
  135. ribbon.MaxAutoRetriesNextServer=0
  136. ribbon.MaxAutoRetries = 0
  137. #spring
  138. spring.servlet.multipart.max-file-size=1Mb
  139. spring.servlet.multipart.max-request-size=1Mb
  140. spring.servlet.multipart.location=/tmp
  141. #loadbalancer
  142. spring.cloud.loadbalancer.retry.enabled=false
  143. #极光app?????#certificatePath 推送文件地址
  144. certificatePath=/data/wwwroot/storage/template/floorWindow.p12
  145. #certificatePassword
  146. certificatePassword=Huang0910
  147. #环境
  148. clientNo=test
  149. smsSunMei_server=http://sms-cly.cn/smsSend.do
  150. #msgOpen=on 表示开启腾讯云短信msgOpen=off 表示关闭腾讯云短???
  151. msgOpen=on
  152. msgAppid=1400435032
  153. msgAppkey=0f2b22a88945244c9868e7380ec0d370
  154. msgTemplateId=773872
  155. msgTime=15
  156. #smsAliOpen=on 表示开启阿里短信smsAliOpen=off 表示关闭阿里短信
  157. smsAliOpen=off
  158. smsAliAccessKeyId=LTAI5tRyGtXgWuig8NBPi2zD
  159. smsAliAccessKeySecret=glWM1hLNzehmdApqNqdNQ1qhSXgjUe
  160. smsAliTemplateCode=SMS_219605019
  161. smsAliTemplateCodeTxt=SMS_225126568
  162. smsAliSysDomain=dysmsapi.aliyuncs.com
  163. smsAliRegionId=cn-shenzhen
  164. #阿里推送安卓消???regionId=cn-hangzhou
  165. #accessKeyId=LTAI4G6LqSJsuRPMqKiiDJ59
  166. #secret=1U2fE2I8N5cCGzjibR2RLnSl7QHWPD
  167. #product=mpaas
  168. #endpoint=mpaas.cn-hangzhou.aliyuncs.com
  169. #appId=ALIPUB9E0A2F6301101
  170. #workspaceId=default
  171. #notifyType=notify
  172. #regionId=cn-hangzhou
  173. regionId=cn-hangzhou
  174. accessKeyId=LTAI5tRyGtXgWuig8NBPi2zD
  175. secret=glWM1hLNzehmdApqNqdNQ1qhSXgjUe
  176. product=mpaas
  177. endpoint=mpaas.cn-hangzhou.aliyuncs.com
  178. appId=ALIPUBE0D7E0C161013
  179. workspaceId=default
  180. notifyType=notify
  181. #开启新推送open,不开启no
  182. newMsg=open
  183. certificatePathNew=/data/wwwroot/storage/template/new/floorWindow.p12
  184. certificatePasswordNew=Huang0910
  185. topic=com.ChaoJiQianTai.LYZC