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

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