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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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.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.successfulCollection=superdesk-notify-successfulCollection
  63. # app消息推送
  64. superdesk.kafka.topic.notify.appMessagePush=superdesk-notify-appMessagePush
  65. # app自定义消息(提示音)推送
  66. superdesk.kafka.topic.notify.customAppMessagePush=superdesk-notify-customAppMessagePush
  67. info.app.name=@project.artifactId@
  68. info.app.version=@project.version@
  69. #spring
  70. spring.jackson.time-zone=GMT+8
  71. spring.http.encoding.charset=UTF-8
  72. spring.http.encoding.force=true
  73. spring.http.encoding.enabled=true
  74. server.tomcat.uri-encoding=UTF-8
  75. auth.crypt.key=U48Y4F1AwUADW24mLVIZtih3gt9bvW0
  76. #wei xin di zhi
  77. wx.hostUrl=https://superdesk-app-test.superdesk.cn
  78. #wei xin gong gao di zhi
  79. wx.wxAppNoticeUrl=/wx/main/?state=8#/home/@id
  80. #wei xin shen he di zhi mobile
  81. wx.wxMsgAuditUrl=/appmobile
  82. #wei xin di zhi mobile
  83. wx.wxMsgUrl=/mobile
  84. superdesk.cache.mode=standalone
  85. #superdesk.cache.groupName=
  86. superdesk.cache.servers=127.0.0.1:6379
  87. superdesk.cache.password=
  88. superdesk.cache.database=1
  89. superdesk.cache.maxPoolSize=10000
  90. superdesk.cache.maxPoolIdle=10
  91. superdesk.cache.minPoolIdle=1
  92. superdesk.cache.maxPoolWaitMillis=10000
  93. swagger.enable=true
  94. #datasource
  95. db.group.size=1
  96. db.shard.size=1000
  97. db.driverClass=com.mysql.jdbc.Driver
  98. db.initialSize=2
  99. db.minIdle=1
  100. db.maxActive=50
  101. db.maxWait=60000
  102. db.timeBetweenEvictionRunsMillis=60000
  103. db.minEvictableIdleTimeMillis=300000
  104. db.testOnBorrow=true
  105. db.testOnReturn=false
  106. 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
  107. master.db.username=root
  108. master.db.password=service_newbak2019
  109. #mybatis
  110. superdesk.mybatis.crudDriver=mapper3
  111. #superdesk.mybatis.dbType=Mysql
  112. superdesk.mybatis.cacheEnabled=true
  113. #superdesk.mybatis.cacheEnabled=false
  114. superdesk.mybatis.dynamicExpire=false
  115. superdesk.mybatis.cacheExpireSeconds=3600
  116. #superdesk.mybatis.rwRouteEnabled=false
  117. superdesk.mybatis.paginationEnabled=true
  118. mybatis.configuration.map-underscore-to-camel-case=true
  119. #eureka
  120. eureka.client.service-url.defaultZone=http://superdesk:superdesk2019@127.0.0.1:19991/eureka/
  121. eureka.client.registry-fetch-interval-seconds=5
  122. eureka.instance.lease-expiration-duration-in-seconds=30
  123. eureka.instance.lease-renewal-interval-in-seconds=10
  124. #hystrix
  125. hystrix.command.default.execution.timeout.enabled=true
  126. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
  127. #ribbon
  128. ribbon.eureka.enabled=true
  129. ribbon.ServerListRefreshInterval=2000
  130. ribbon.ConnectTimeout = 2000
  131. ribbon.ReadTimeout = 10000
  132. ribbon.OkToRetryOnAllOperations=false
  133. ribbon.MaxAutoRetriesNextServer=0
  134. ribbon.MaxAutoRetries = 0
  135. #spring
  136. spring.servlet.multipart.max-file-size=1Mb
  137. spring.servlet.multipart.max-request-size=1Mb
  138. spring.servlet.multipart.location=/tmp
  139. #loadbalancer
  140. spring.cloud.loadbalancer.retry.enabled=false
  141. #极光app?????#certificatePath 推送文件地址
  142. certificatePath=/data/wwwroot/storage/template/floorWindow.p12
  143. #certificatePassword
  144. certificatePassword=Huang0910
  145. #环境
  146. clientNo=test
  147. smsSunMei_server=http://sms-cly.cn/smsSend.do
  148. #msgOpen=on 表示开启腾讯云短信msgOpen=off 表示关闭腾讯云短???
  149. msgOpen=on
  150. msgAppid=1400435032
  151. msgAppkey=0f2b22a88945244c9868e7380ec0d370
  152. msgTemplateId=773872
  153. msgTime=15
  154. #smsAliOpen=on 表示开启阿里短信smsAliOpen=off 表示关闭阿里短信
  155. smsAliOpen=off
  156. smsAliAccessKeyId=LTAI5tRyGtXgWuig8NBPi2zD
  157. smsAliAccessKeySecret=glWM1hLNzehmdApqNqdNQ1qhSXgjUe
  158. smsAliTemplateCode=SMS_219605019
  159. smsAliTemplateCodeTxt=SMS_225126568
  160. smsAliSysDomain=dysmsapi.aliyuncs.com
  161. smsAliRegionId=cn-shenzhen
  162. #阿里推送安卓消???regionId=cn-hangzhou
  163. #accessKeyId=LTAI4G6LqSJsuRPMqKiiDJ59
  164. #secret=1U2fE2I8N5cCGzjibR2RLnSl7QHWPD
  165. #product=mpaas
  166. #endpoint=mpaas.cn-hangzhou.aliyuncs.com
  167. #appId=ALIPUB9E0A2F6301101
  168. #workspaceId=default
  169. #notifyType=notify
  170. #regionId=cn-hangzhou
  171. regionId=cn-hangzhou
  172. accessKeyId=LTAI5tRyGtXgWuig8NBPi2zD
  173. secret=glWM1hLNzehmdApqNqdNQ1qhSXgjUe
  174. product=mpaas
  175. endpoint=mpaas.cn-hangzhou.aliyuncs.com
  176. appId=ALIPUBE0D7E0C161013
  177. workspaceId=default
  178. notifyType=notify
  179. #开启新推送open,不开启no
  180. newMsg=open
  181. certificatePathNew=/data/wwwroot/storage/template/new/floorWindow.p12
  182. certificatePasswordNew=Huang0910
  183. topic=com.ChaoJiQianTai.LYZC