application-prod.yml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. # 项目相关配置
  2. tzy:
  3. # 名称
  4. name: TzyTms
  5. # 版本
  6. version: 4.5.0
  7. # 版权年份
  8. copyrightYear: 2019
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/tzy/uploadPath,Linux配置 /home/tzy/uploadPath)
  12. profile: /tmp
  13. # profile: F:/tomcat/card/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. #版本
  17. app-version: prod
  18. #Forest
  19. forest:
  20. #bean-id: config0 # 在spring上下文中bean的id(默认为 forestConfiguration)
  21. #backend: okhttp3 # 后端HTTP框架(默认为 okhttp3)
  22. #max-connections: 1000 # 连接池最大连接数(默认为 500)
  23. #max-route-connections: 500 # 每个路由的最大连接数(默认为 500)你这
  24. timeout: 30000 # 请求超时时间,单位为毫秒(默认为 3000)
  25. connect-timeout: 30000 # 连接超时时间,单位为毫秒(默认为 timeout)
  26. read-timeout: 300000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
  27. #max-retry-count: 0 # 请求失败后重试次数(默认为 0 次不重试)
  28. #ssl-protocol: SSLv3 # 单向验证的HTTPS的默认SSL协议(默认为 SSLv3)
  29. #logEnabled: true # 打开或关闭日志(默认为 true)
  30. #log-request: true # 打开/关闭Forest请求日志(默认为 true)
  31. #log-response-status: true # 打开/关闭Forest响应状态日志(默认为 true)
  32. #log-response-content: true # 打开/关闭Forest响应内容日志(默认为 false)
  33. # 开发环境配置
  34. server:
  35. # 服务器的HTTP端口,默认为80
  36. port: 80
  37. tomcat:
  38. # tomcat的URI编码
  39. uri-encoding: UTF-8
  40. # tomcat最大线程数,默认为200
  41. max-threads: 800
  42. # Tomcat启动初始化的线程数,默认值25
  43. min-spare-threads: 30
  44. #超时时间
  45. connection-timeout: 600000
  46. basedir: /tmp/logs
  47. accesslog:
  48. enabled: true
  49. buffered: true
  50. prefix: access_log
  51. file-date-format: .yyyy-MM-dd
  52. # 日志配置
  53. logging:
  54. console.enabled: ${CONSOLE_ENABLED:true}
  55. file.enabled: ${FILE_ENABLED:false}
  56. level:
  57. com.tzy: info
  58. org.springframework: warn
  59. fluentd:
  60. enabled: ${FLUENTD_ENABLED:false}
  61. host: ${FLUENTD_HOST:127.0.0.1}
  62. port: ${FLUENTD_PORT:24225}
  63. # 用户配置
  64. user:
  65. password:
  66. # 密码错误{maxRetryCount}次锁定10分钟
  67. maxRetryCount: 5
  68. # Spring配置
  69. spring:
  70. jackson:
  71. time-zone: GMT+8
  72. date-format: yyyy-MM-dd HH:mm:ss
  73. profiles:
  74. active: druid
  75. # 文件上传
  76. servlet:
  77. multipart:
  78. # 单个文件大小
  79. max-file-size: 50MB
  80. # 设置总上传的文件大小
  81. max-request-size: 50MB
  82. # 服务模块
  83. devtools:
  84. restart:
  85. # 热部署开关
  86. enabled: true
  87. redis:
  88. database: 1
  89. host: ${REDIS_HOST:172.29.19.234}
  90. #host: hobbystock.cn
  91. port: ${REDIS_PORT:6379}
  92. password: #Pass2021 # 密码(默认为空)
  93. timeout: 60000 # 连接超时时长(毫秒)
  94. pool:
  95. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  96. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  97. max-idle: 10 # 连接池中的最大空闲连接
  98. min-idle: 5 # 连接池中的最小空闲连接
  99. # MyBatis
  100. mybatis:
  101. # 搜索指定包别名
  102. typeAliasesPackage: com.tzy.**.domain
  103. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  104. mapperLocations: classpath*:mapper/**/*Mapper.xml
  105. # 加载全局的配置文件
  106. configLocation: classpath:mybatis/mybatis-config.xml
  107. # PageHelper分页插件
  108. pagehelper:
  109. helperDialect: postgresql
  110. reasonable: true
  111. supportMethodsArguments: true
  112. params: count=countSql
  113. # Swagger配置
  114. swagger:
  115. # 是否开启swagger
  116. enabled: false
  117. pay:
  118. #微信支付
  119. wxpay:
  120. app:
  121. appID: wx8ee47a255776f241
  122. appletID: wx8ee47a255776f241
  123. thirdAndriID: wx22a7349c29e688d4
  124. mchID: 1620428472 #1618054254 #1612475613
  125. key: 49F1947DC77ABDDEA204544FC2DB4246F2EB7A0C #cA0aI2eN0bB0eD2fC6tB4kB3aF4fD188 #123456789123456789123456789abcdd
  126. #微信商户平台下载的安全证书存放路径
  127. certPath: /app/configs/apiclient_cert.p12
  128. #微信支付成功的回调地址
  129. payNotifyUrl: https://m2.hobbystocks.cn/api/wx/paymentBack
  130. #微信退款结果回调地址
  131. refundNotifyUrl: https://m2.hobbystocks.cn/api/wx/refundBack
  132. alipay:
  133. app:
  134. appId: 2021002181669560
  135. privateKey:
  136. alipayPublicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgCIKpTwnnPm2D1IsMlTvuCq3WBAZKm8IaUqR/IxqQAzwEVuW0+lf6Ririm4PLNcU5eZXK7w+oHqi23b7rL5htqz1K0/q/oBHEeAliCNX+zMr+6sTBN33i5yX/buvVmBPGJJg791lFdnnnELGqZf+nQrJBlOAW/aCVTga7hcf8CH/ZRDboExzf9zK5N6qcxKexsgXZRZso+d47DcAj3sF1lAcYQvTAOG+aJRcwBFFOrb3QYZI1WLOZdjq3kdhXUuVrR8HhQ68BRIvfJGX7Hwy4Ffmb9hD/ljkT1S6+jzslMp3cMbU4IlJPF0o9xxCz4KWiW0pWhwQTolNVqW3GyHG2wIDAQAB
  137. privateKeyPath: /app/configs/privatekey.txt
  138. #支付宝支付成功的回调地址
  139. payNotifyUrl: https://m2.hobbystocks.cn/api/ali/paymentBack
  140. refundNotifyUrl: https://m2.hobbystocks.cn/api/ali/refundBack
  141. hm:
  142. app:
  143. hmPublicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCkByRMw/sL8tg38lrGi4JFXFR/jrphyyj3LYHYYnTQj3dl+w4JUysgE7cE7FxEfxMkuM3efv6HeMP0vIsYBrS7EXvVB9vm/HH7QcpvqCfUOLhe4ugaDqfKz9/2BQinieiSRy8gRnm5eadEZn42EtxnZ+s6PBPKeijrxz+JyvCR8QIDAQAB
  144. publicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJBww/AEqKfofkDGP+EkIKC5r4oHw93O6qFJ5QCnGgNMd5MC3q4Pyk6ImOjSj/OdRqTefRdWZUzcjlEPxMBLARa1wqKcdw4f2Wyxr+eT+VcJSQu5F8zWYjtNO+9BVwpKqJ4CXYPyZqY8fAx0urrd9opRkV0xpK3f/mlkgbgF+XvQIDAQAB
  145. privateKeyPath: /app/configs/hmPrivatekey.txt
  146. wxMchID: 480528577
  147. app_id: 663101000155258
  148. format: JSON
  149. version: 1.0
  150. storeId: 100001
  151. #支付宝支付成功的回调地址
  152. host:
  153. payNotifyUrl: https://m2.hobbystocks.cn/api/hm/paymentBack
  154. refundNotifyUrl: https://m2.hobbystocks.cn/api/hm/refundBack
  155. returnUrl: https://m2.hobbystocks.cn/api/hm/refundBack
  156. ghStaticUrl: https://hobby-6g7xp6r63e7767bb-1309590715.tcloudbaseapp.com/jump_mp.html
  157. # 防止XSS攻击
  158. xss:
  159. # 过滤开关
  160. enabled: true
  161. # 排除链接(多个用逗号分隔)
  162. excludes: /system/notice/*
  163. # 匹配链接
  164. urlPatterns: /system/*,/monitor/*,/tool/*,/base/*,/api/*
  165. wx:
  166. default_avatar: https://static.public.hobbystock.cn/applet/share/share_logo2.png
  167. applet:
  168. lives:
  169. # 直播认证二维码
  170. authUrl: https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh
  171. #手机验证码
  172. phone:
  173. verification_code_uri: https://coresvc-dev/api/verification/code/
  174. verification_code_uri_hk: http://coresvc-dev/api/verification/code/hk/
  175. authenticate:
  176. url: http://coresvc-dev/api/auth/
  177. #服务前缀路径
  178. coreService:
  179. baseurl: http://coresvc
  180. smsUrl: /api/reminder/live/on
  181. appSmsUrl: /api/appmsg/live/on
  182. #物流
  183. express:
  184. sf:
  185. client_code: LSSWCkEipb #顾客编码
  186. check_word: 98vtuFMv6FQabirYZ3LD0OhI1fspjc4Z #校验码
  187. box_url: https://sfapi-sbox.sf-express.com/std/service #沙箱环境的地址
  188. url: https://sfapi.sf-express.com/std/service #生产环境的地址
  189. jd:
  190. appkey: 76f41d301d75499f9a85f9603f535a26
  191. appsecret: 44d5f413cebb406b867b4f5b3477b0af
  192. redirect_uri: https://m-dev.hobbystocks.cn/api/home/jdAuth
  193. knife4j:
  194. enable: true
  195. setting:
  196. language: zh-CN
  197. production: true #是否生产环境