application-test.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. mp:
  2. profile: /home/mangpiao/mp-server
  3. pay:
  4. callbackUrl: https://test-mp-adm.kaimanghe.net/service/notify/payCallback
  5. alipay:
  6. callbackUrl: https://test-mp-adm.kaimanghe.net/service/notify/alipayCallback
  7. # 日志配置
  8. logging:
  9. config: classpath:logback-8091.xml
  10. level:
  11. com.qs.mp: debug
  12. org.springframework: warn
  13. org.apache: warn
  14. io.lettuce.core: warn
  15. org.quartz.core: warn
  16. com.qs.mp.framework.interceptor: warn
  17. ma.glasnost.orika: warn
  18. # 数据源配置
  19. spring:
  20. redis:
  21. host: 43.143.93.199
  22. port: 6379
  23. password: 1PQd[NOc$8pWGNJ
  24. # 连接超时时间(毫秒)
  25. timeout: 10000
  26. jedis:
  27. pool:
  28. # 连接池中的最大空闲连接
  29. max-idle: 30
  30. # 连接池中的最小空闲连接
  31. min-idle: 6
  32. # 连接池最大连接数(使用负值表示没有限制)
  33. max-active: 10
  34. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  35. max-wait: 3000
  36. datasource:
  37. type: com.alibaba.druid.pool.DruidDataSource
  38. driverClassName: com.mysql.cj.jdbc.Driver
  39. druid:
  40. # 主库数据源
  41. master:
  42. url: jdbc:mysql://43.143.93.199:3306/mpdb_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  43. username: root
  44. password: mp@666888
  45. # 从库数据源
  46. slave:
  47. # 从数据源开关/默认关闭
  48. enabled: false
  49. url:
  50. username:
  51. password:
  52. # 初始连接数
  53. initialSize: 5
  54. # 最小连接池数量
  55. minIdle: 10
  56. # 最大连接池数量
  57. maxActive: 20
  58. # 配置获取连接等待超时的时间
  59. maxWait: 60000
  60. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  61. timeBetweenEvictionRunsMillis: 60000
  62. # 配置一个连接在池中最小生存的时间,单位是毫秒
  63. minEvictableIdleTimeMillis: 300000
  64. # 配置一个连接在池中最大生存的时间,单位是毫秒
  65. maxEvictableIdleTimeMillis: 900000
  66. # 配置检测连接是否有效
  67. validationQuery: SELECT 1 FROM DUAL
  68. testWhileIdle: true
  69. testOnBorrow: false
  70. testOnReturn: false
  71. webStatFilter:
  72. enabled: true
  73. statViewServlet:
  74. enabled: true
  75. # 设置白名单,不填则允许所有访问
  76. allow:
  77. url-pattern: /monitor/druid/*
  78. filter:
  79. stat:
  80. enabled: true
  81. # 慢SQL记录
  82. log-slow-sql: true
  83. slow-sql-millis: 1000
  84. merge-sql: true
  85. wall:
  86. config:
  87. multi-statement-allow: true
  88. # 环境配置
  89. server:
  90. # 服务端口
  91. port: 8091
  92. servlet:
  93. # 项目contextPath
  94. context-path: /
  95. session-timeout: 1800
  96. # 生成唯一ID的,同一Mac地址多应用的部署方式,用这个进行区分
  97. datacenterId: 1
  98. # 环境标识
  99. env: test
  100. #API访问
  101. client:
  102. # appKey
  103. device:
  104. appKey: 3c8b36cf4ace53e76a210e5edd75ef2b
  105. # appSecret
  106. appSecret: b84382574b0f4988bc68367fbc340d3a
  107. # cloud
  108. cloud:
  109. # 存储对象公开可访问
  110. public-bucket-name: mp-public-test-1309783959
  111. # 存储对象公开不可访问,需要通过应用下载
  112. private-bucket-name: mp-auth-test-1309783959
  113. accessKey: AKIDue8LHwKSJsBDySgdJjslNilY4JHyOXPz
  114. secretKey: SdXAWbPwDDvMXR5SYOxtYw3sQhhQs2wZ
  115. region: ap-shanghai
  116. # 注释mq
  117. #mq:
  118. # consumer-conn: true
  119. # service-url: http://pulsar-op4bzppa37m4.tdmq-pulsar.ap-sh.public.tencenttdmq.com:8080
  120. # auth-token: eyJrZXlJZCI6InB1bHNhci1vcDRienBwYTM3bTQiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJwdWxzYXItb3A0YnpwcGEzN200X21wLXNlcnZlci10ZXN0In0.GVeFHHSqIYqTeOtXItWOT-NfydCSNvvVVS2FlpFZNKY
  121. # topic-ticket-generate: pulsar-op4bzppa37m4/test-share/topic-ticket-generate
  122. # topic-ticket-pay: pulsar-op4bzppa37m4/test-share/topic-ticket-pay
  123. # consumer-topics: pulsar-op4bzppa37m4/test-share/topic-ticket-generate,pulsar-op4bzppa37m4/test-share/topic-ticket-pay
  124. # 小程序
  125. miniprogram:
  126. # 接收通知的状态
  127. state: trial
  128. env_version: trial
  129. # 盲票导出每页查询数量
  130. export:
  131. page-size: 200
  132. shipping:
  133. user: 4
  134. channel: 7
  135. bind:
  136. channelId: 2
  137. # 银盛支付配置
  138. ys-pay:
  139. private-key-path: /home/mangpiao/mp-server/data/ysPayPre.pfx
  140. public-key-path: /home/mangpiao/mp-server/data/businessgate.cer
  141. # 支付完后跳转
  142. return-url: https://test-mp-adm.kaimanghe.net
  143. # 回调地址
  144. pay-notify-url: https://test-mp-adm.kaimanghe.net/service/notify/ysCallback
  145. # 分账回调地址
  146. div-notify-url: https://test-mp-adm.kaimanghe.net/service/notify/ysDivCallback
  147. # 提现回调地址
  148. withdraw-notify-url: https://test-mp-adm.kaimanghe.net/service/notify/ysWithdrawCallback