application.yml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. # 项目相关配置
  2. tzy:
  3. # 名称
  4. name: app
  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: /home/tzy/uploadPath
  13. # profile: F:/tomcat/card/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. #版本
  17. app-version: dev
  18. #不可用优惠劵活动类型
  19. noCouponAct: 619,618,2023_618_主
  20. #大转盘
  21. turntableAct: 2022双11主
  22. #checklist日历标签
  23. calendarLabel: 组队,购买,一番赏
  24. #Forest
  25. forest:
  26. timeout: 30000 # 请求超时时间,单位为毫秒(默认为 3000)
  27. connect-timeout: 30000 # 连接超时时间,单位为毫秒(默认为 timeout)
  28. read-timeout: 300000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
  29. variables:
  30. appleUrl: https://appleid.apple.com/auth
  31. # 开发环境配置
  32. server:
  33. # 服务器的HTTP端口,默认为80
  34. port: 8082
  35. tomcat:
  36. # tomcat的URI编码
  37. uri-encoding: UTF-8
  38. # tomcat最大线程数,默认为200
  39. max-threads: 800
  40. # Tomcat启动初始化的线程数,默认值25
  41. min-spare-threads: 30
  42. #超时时间
  43. connection-timeout: 600000
  44. basedir: c://tmp/logs
  45. accesslog:
  46. enabled: true
  47. buffered: true
  48. prefix: access_log
  49. file-date-format: .yyyy-MM-dd
  50. # 日志配置
  51. logging:
  52. console.enabled: ${CONSOLE_ENABLED:true}
  53. file.enabled: ${FILE_ENABLED:false}
  54. level:
  55. com.tzy: debug
  56. org.teasoft: debug
  57. org.springframework: warn
  58. feign:
  59. client:
  60. config:
  61. default: info
  62. fluentd:
  63. enabled: ${FLUENTD_ENABLED:false}
  64. host: ${FLUENTD_HOST:127.0.0.1}
  65. port: ${FLUENTD_PORT:24225}
  66. audit:
  67. enabled: ${AUDIT_ENABLED:false}
  68. host: ${AUDIT_HOST:192.168.1.51}
  69. port: ${AUDIT_PORT:24225}
  70. bee:
  71. enabled: true
  72. # 用户配置
  73. user:
  74. password:
  75. # 密码错误{maxRetryCount}次锁定10分钟
  76. maxRetryCount: 5
  77. # Spring配置
  78. spring:
  79. application:
  80. name: app
  81. jackson:
  82. time-zone: GMT+8
  83. date-format: yyyy-MM-dd HH:mm:ss
  84. # 文件上传
  85. servlet:
  86. multipart:
  87. # 单个文件大小
  88. max-file-size: 50MB
  89. # 设置总上传的文件大小
  90. max-request-size: 50MB
  91. # 服务模块
  92. devtools:
  93. restart:
  94. # 热部署开关
  95. enabled: false
  96. datasource:
  97. type: com.alibaba.druid.pool.DruidDataSource
  98. driverClassName: org.postgresql.Driver
  99. url: jdbc:postgresql://192.168.50.8:5432/ahx_app
  100. username: postgres
  101. password: 123456
  102. druid:
  103. # 初始连接数
  104. initialSize: 5
  105. # 最小连接池数量
  106. minIdle: 10
  107. # 最大连接池数量
  108. maxActive: 20
  109. # 配置获取连接等待超时的时间
  110. maxWait: 60000
  111. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  112. timeBetweenEvictionRunsMillis: 60000
  113. # 配置一个连接在池中最小生存的时间,单位是毫秒
  114. minEvictableIdleTimeMillis: 300000
  115. # 配置一个连接在池中最大生存的时间,单位是毫秒
  116. maxEvictableIdleTimeMillis: 900000
  117. # 配置检测连接是否有效
  118. validationQuery: SELECT 1
  119. # 检测连接超时时间(ms)
  120. validationQueryTimeout: 200
  121. testWhileIdle: true
  122. testOnBorrow: false
  123. testOnReturn: false
  124. removeAbandoned: false
  125. logAbandoned: false
  126. webStatFilter:
  127. enabled: false
  128. statViewServlet:
  129. enabled: true
  130. # 设置白名单,不填则允许所有访问
  131. allow:
  132. url-pattern: /druid/*
  133. # 控制台管理用户名和密码
  134. login-username:
  135. login-password:
  136. filter:
  137. stat:
  138. enabled: true
  139. # 慢SQL记录
  140. log-slow-sql: true
  141. slow-sql-millis: 1000
  142. merge-sql: true
  143. wall:
  144. config:
  145. multi-statement-allow: true
  146. redis:
  147. database: 1
  148. host: 192.168.50.8
  149. #host: hobbystock.cn
  150. port: 6379
  151. password: Pass2010 # 密码(默认为空)
  152. timeout: 60000 # 连接超时时长(毫秒)
  153. pool:
  154. max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
  155. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  156. max-idle: 10 # 连接池中的最大空闲连接
  157. min-idle: 5 # 连接池中的最小空闲连接
  158. #mq
  159. rabbitmq:
  160. host: 192.168.50.10
  161. port: 5672
  162. username: ahx
  163. password: ahx
  164. #确认消息已发送到交换机(Exchange)
  165. publisher-confirms: true
  166. #确认消息已发送到队列(Queue)
  167. publisher-returns: true
  168. template:
  169. retry:
  170. enabled: true
  171. mandatory: true
  172. listener:
  173. simple:
  174. acknowledge-mode: manual
  175. prefetch: 5
  176. direct:
  177. retry:
  178. enabled: true
  179. max-attempts: 1
  180. mail:
  181. host: smtp.exmail.qq.com
  182. port: 465
  183. username: yu@shpydzswyxgs.wecom.work
  184. password: xHbfkdVPcoBiFcvT
  185. properties:
  186. mail:
  187. smtp:
  188. auth: true
  189. starttls:
  190. enable: true
  191. ssl:
  192. enable: true
  193. # MyBatis
  194. mybatis:
  195. # 搜索指定包别名
  196. typeAliasesPackage: com.tzy.**.domain
  197. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  198. mapperLocations: classpath*:mapper/**/*Mapper.xml
  199. # 加载全局的配置文件
  200. configLocation: classpath:mybatis/mybatis-config.xml
  201. # PageHelper分页插件
  202. pagehelper:
  203. helperDialect: postgresql
  204. reasonable: false
  205. supportMethodsArguments: true
  206. params: count=countSql
  207. # Swagger配置
  208. swagger:
  209. # 是否开启swagger
  210. enabled: true
  211. #融云配置
  212. rongcloud:
  213. appKey: 8luwapkv8wkql
  214. appSecret: 9z0TSskFnsaek
  215. # 防止XSS攻击
  216. xss:
  217. # 过滤开关
  218. enabled: true
  219. # 排除链接(多个用逗号分隔)
  220. excludes: /system/notice/*
  221. # 匹配链接
  222. urlPatterns: /system/*,/monitor/*,/tool/*,/base/*,/api/*
  223. wx:
  224. default_avatar: https://static.public.hobbystock.cn/applet/share/share_logo2.png
  225. applet:
  226. lives:
  227. # 直播认证二维码
  228. authUrl: https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh
  229. #手机验证码
  230. phone:
  231. verification_code_uri: https://coresvc-dev/api/verification/code/
  232. verification_code_uri_hk: http://coresvc-dev/api/verification/code/hk/
  233. authenticate:
  234. url: https://coresvc-dev.hobbystocks.cn/api/auth/
  235. #服务前缀路径
  236. coreService:
  237. baseurl: https://coresvc-dev.hobbystocks.cn
  238. smsUrl: /api/reminder/live/on
  239. appSmsUrl: /api/appmsg/live/on
  240. ipUrl: /api/geo/city
  241. #admin服务url映射
  242. adminService:
  243. baseurl: https://coresvc-dev.hobbystocks.cn
  244. orderNotice: /goods/orderInfo/sendGroupMsg
  245. tenant:
  246. appid: 1658744039
  247. secretKey: f58b968b920aa0dbff34fbc0abb7f2a0
  248. #物流
  249. express:
  250. sf:
  251. client_code: LSSWCkEipb #顾客编码
  252. check_word: 98vtuFMv6FQabirYZ3LD0OhI1fspjc4Z #校验码
  253. box_url: https://sfapi-sbox.sf-express.com/std/service #沙箱环境的地址
  254. url: https://sfapi.sf-express.com/std/service #生产环境的地址
  255. jd:
  256. appkey: 76f41d301d75499f9a85f9603f535a26
  257. appsecret: 44d5f413cebb406b867b4f5b3477b0af
  258. redirect_uri: https://m-dev.hobbystocks.cn/api/home/jdAuth
  259. #elasticsearch 配置
  260. elasticsearch:
  261. rest:
  262. #uris: localhost:9200,localhost:9300 #测试环境es地址
  263. uris: 192.168.50.10:9202 #测试环境es地址
  264. #直播间webSocket地址
  265. liveWebSocketUrl: http://poyee-im/chat/handler
  266. management:
  267. endpoints:
  268. web:
  269. exposure:
  270. include: info, health,metrics,prometheus
  271. exclude: shutdown
  272. base-path: /actuator
  273. enabled-by-default: true
  274. jmx:
  275. exposure:
  276. include: info, health,metrics,prometheus
  277. endpoint:
  278. health.show-details: never
  279. #health.show-details: ALWAYS
  280. metrics:
  281. enabled: true
  282. prometheus:
  283. enabled: true
  284. metrics:
  285. export:
  286. prometheus:
  287. enabled: true
  288. step: 1ms
  289. descriptions: true
  290. tags:
  291. # 为指标设置一个Tag,这里设置为应用名,Tag是Prometheus提供的一种能力,从而实现更加灵活的筛选
  292. application: ${tzy.name}
  293. health:
  294. defaults.enabled: false
  295. db.enabled: true
  296. diskspace.enabled: true
  297. feign:
  298. httpclient:
  299. enabled: true # 启用 HttpClient 作为 Feign 的 HTTP 客户端
  300. client:
  301. config:
  302. default:
  303. connectTimeout: 3000 # 连接超时
  304. readTimeout: 3000 # 读取超时
  305. maxConnections: 300 # 全局最大连接数
  306. maxConnectionsPerRoute: 100 # 每个路由的最大连接数
  307. imServer:
  308. baseUrl: http://poyee-im
  309. userUrl: /api/chat/room/people-list?roomId=%s
  310. forumServer:
  311. baseUrl: http://community
  312. mallServer:
  313. baseUrl: http://poyee-mall