openservice-pro.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. server:
  2. port: 10017
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /open
  8. compression:
  9. enabled: true #开启数据压缩
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: info
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. "[com.alibaba.nacos]": ERROR
  22. tracer: trace # 开启trace级别日志,在开发时可以开启此配置,则控制台可以打印es全部请求信息及DSL语句,为了避免重复,开启此项配置后,可以将EE的print-dsl设置为false.
  23. spring:
  24. application:
  25. name: openservice
  26. cloud:
  27. gateway:
  28. discovery:
  29. locator:
  30. lower-case-service-id: true
  31. enabled: true
  32. nacos:
  33. discovery:
  34. server-addr: 10.16.0.49:8848
  35. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  36. sentinel:
  37. transport:
  38. # 添加sentinel的控制台地址
  39. dashboard: 10.0.2.77:8787
  40. # 指定应用与Sentinel控制台交互的端口,应用会起一个HttpServer占用该端口
  41. #port: 8719
  42. # 将其配置为 false 即可根据不同的 URL 进行链路限流
  43. #web-context-unify: false
  44. # 从nacos配置中心拉取规则信息
  45. datasource:
  46. flow-rules: #流控规则
  47. nacos:
  48. server-addr: 10.16.0.49:8848
  49. namespace: 02f60846-3747-424e-a598-2ea9e66dfe87
  50. username: nacos
  51. password: m2BmoAaEc0vFQLsh
  52. dataId: ${spring.application.name}-flow-rules
  53. groupId: DEFAULT_GROUP # 注意groupId对应Sentinel Dashboard中的定义
  54. data-type: json
  55. rule-type: flow
  56. redis:
  57. host: r-wz968zear8t0d8bkbg.redis.rds.aliyuncs.com #Redis服务器地址
  58. database: 1 # Redis数据库索引(默认为0)
  59. port: 6379 # Redis服务器连接端口
  60. password: yn8Vh85rxvtUPnqB # Redis服务器连接密码(默认为空)
  61. prefix: fsv2_pro
  62. jedis:
  63. pool:
  64. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  65. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-idle: 8 # 连接池中的最大空闲连接
  67. min-idle: 0 # 连接池中的最小空闲连接
  68. datasource:
  69. url: jdbc:mysql://rm-wz989u6pfs8lb7a22.mysql.rds.aliyuncs.com:3306/openservice?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2b8
  70. username: fujicaV2user
  71. password: BGbn4jP!mq4jxn@o4fQyp5*@
  72. type: com.zaxxer.hikari.HikariDataSource
  73. driver-class-name: com.mysql.cj.jdbc.Driver
  74. validation-timeout: 3000
  75. idle-timeout: 60000
  76. minimum-idle: 30
  77. read-only: false
  78. connection-timeout: 60000 #请求连接的超时时间
  79. maximum-pool-size: 1000 #最大连接数量
  80. max-lifetime: 1800000 #连接的最长生命周期
  81. connection-test-query: select 1 #连接验证sql
  82. data:
  83. mongodb:
  84. uri: mongodb://root:U5Z0Y0fneQnjH3Xj4lENpW0D@dds-wz92ac81710b54241.mongodb.rds.aliyuncs.com:3717,dds-wz92ac81710b54242.mongodb.rds.aliyuncs.com:3717/fujica_data_center?replicaSet=mgset-77298810&authSource=admin
  85. #指定mybatis映射文件的地址
  86. mybatis:
  87. mapper-locations: classpath:mapper/*.xml
  88. configuration:
  89. map-underscore-to-camel-case: true
  90. rocketmq:
  91. name-server: 10.16.0.80:9876;10.16.0.81:9876;10.16.0.82:9876
  92. producer:
  93. group: fujica-producer
  94. consumer:
  95. topic:
  96. payResultSync: topic_pay_result_sync_api_pro
  97. topicExPushParkIn: push_park_in_data_pro
  98. topicExPushParkOut: push_park_out_data_pro
  99. parkCarFeeOrder: park_car_fee_order_pro
  100. topicParkInfo: topic_park_info_pro
  101. topicParkPlace: topic_park_place_pro
  102. group:
  103. payResultSync: topic_pay_result_sync_api_pro
  104. topicExPushParkIn: push_park_in_data_pro
  105. topicExPushParkOut: push_park_out_data_pro
  106. parkCarFeeOrder: park_car_fee_order_pro
  107. topicParkInfo: topic_park_info_pro
  108. topicParkPlace: topic_park_place_pro
  109. feign:
  110. httpclient:
  111. enabled: true #开启feign连接池
  112. max-connections: 100
  113. max-connections-per-route: 50
  114. client:
  115. config:
  116. default:
  117. connect-timeout: 2000 #默认连接超时时间
  118. read-timeout: 8000 #默认请求超时时间
  119. payCenterProxy:
  120. connect-timeout: 2000 #代理服务连接超时时间
  121. read-timeout: 25000 #代理服务请求超时时
  122. async:
  123. corePoolSize: 5
  124. maxPoolSize: 10
  125. queueCapacity: 20
  126. namePrefix: async-service-
  127. aliyun:
  128. oss:
  129. endpoint: https://oss-cn-shenzhen.aliyuncs.com
  130. keyid: LTAI5tALFygbdLmGw1VsDEVw
  131. keysecret: wVJnGaeR8hkxvdnjr2lIzAWlZGVxTG
  132. bucketname: fsbase
  133. open:
  134. sign:
  135. check: true
  136. push:
  137. url-retry-time: 0
  138. url-retry-interval: 1000
  139. allow-re-push: false
  140. re-push-time: 0
  141. re-push-interval: 1000
  142. save-push-error: false
  143. xxl:
  144. job:
  145. admin:
  146. addresses: http://10.16.0.49:8088/xxl-job-admin
  147. executor:
  148. appname: openservice
  149. address:
  150. port: 9966
  151. logretentiondays: 30
  152. accessToken: default_token