application.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. spring:
  2. profiles:
  3. active: dev
  4. application:
  5. name: gateway-server
  6. servlet:
  7. multipart:
  8. max-file-size: 2000Mb
  9. max-request-size: 2500Mb
  10. security:
  11. user:
  12. name: admin
  13. password: select111***
  14. rabbitmq:
  15. host: 192.168.0.176
  16. port: 5672
  17. virtual-host: dev
  18. username: saas
  19. password: select123***
  20. zipkin:
  21. sender:
  22. type: rabbit
  23. locator:
  24. discovery:
  25. enabled: true
  26. sleuth:
  27. sampler:
  28. probability: 1.0
  29. cloud:
  30. gateway:
  31. discovery:
  32. locator:
  33. enabled: true
  34. routes:
  35. - id: UI-SERVER
  36. uri: lb://UI-SERVER
  37. predicates:
  38. - Path=/api/ui/**
  39. filters:
  40. - RewritePath=/api/ui/(?<segment>.*), /$\{segment}
  41. - id: ACCOUNT-SERVER
  42. uri: lb://ACCOUNT-SERVER
  43. predicates:
  44. - Path=/api/account/**
  45. filters:
  46. - RewritePath=/api/account/(?<segment>.*), /$\{segment}
  47. - id: AUTH-SERVER
  48. uri: lb://AUTH-SERVER
  49. predicates:
  50. - Path=/api/auth/**
  51. filters:
  52. - RewritePath=/api/auth/(?<segment>.*), /$\{segment}
  53. - id: FILE-SERVER
  54. uri: lb://FILE-SERVER
  55. predicates:
  56. - Path=/api/file/**
  57. filters:
  58. - RewritePath=/api/file/(?<segment>.*), /$\{segment}
  59. - id: MAIL-SERVER
  60. uri: lb://MAIL-SERVER
  61. predicates:
  62. - Path=/api/mail/**
  63. filters:
  64. - RewritePath=/api/mail/(?<segment>.*), /$\{segment}
  65. - id: SMS-SERVER
  66. uri: lb://SMS-SERVER
  67. predicates:
  68. - Path=/api/sms/**
  69. filters:
  70. - RewritePath=/api/sms/(?<segment>.*), /$\{segment}
  71. - id: PURCHASE-SERVER
  72. uri: lb://PURCHASE-SERVER
  73. predicates:
  74. - Path=/api/purchase/**
  75. filters:
  76. - RewritePath=/api/purchase/(?<segment>.*), /$\{segment}
  77. - id: SALE-SERVER
  78. uri: lb://SALE-SERVER
  79. predicates:
  80. - Path=/api/sale/**
  81. filters:
  82. - RewritePath=/api/sale/(?<segment>.*), /$\{segment}
  83. - id: STORAGE-SERVER
  84. uri: lb://STORAGE-SERVER
  85. predicates:
  86. - Path=/api/storage/**
  87. filters:
  88. - RewritePath=/api/storage/(?<segment>.*), /$\{segment}
  89. - id: DOCUMENT-SERVER
  90. uri: lb://DOCUMENT-SERVER
  91. predicates:
  92. - Path=/api/document/**
  93. filters:
  94. - RewritePath=/api/document/(?<segment>.*), /$\{segment}
  95. - id: MONEY-SERVER
  96. uri: lb://MONEY-SERVER
  97. predicates:
  98. - Path=/api/money/**
  99. filters:
  100. - RewritePath=/api/money/(?<segment>.*), /$\{segment}
  101. - id: COMMONS-SERVER
  102. uri: lb://COMMONS-SERVER
  103. predicates:
  104. - Path=/api/commons/**
  105. filters:
  106. - RewritePath=/api/commons/(?<segment>.*), /$\{segment}
  107. redis:
  108. host: 192.168.253.12
  109. port: 6379
  110. server:
  111. port: 8560
  112. tomcat:
  113. uri-encoding: UTF-8
  114. eureka:
  115. instance:
  116. leaseRenewalIntervalInSeconds: 10
  117. health-check-url-path: /actuator/health
  118. status-page-url-path: /actuator/info
  119. prefer-ip-address: true
  120. metadata-map:
  121. user.name: ${spring.security.user.name}
  122. user.password: ${spring.security.user.password}
  123. client:
  124. registryFetchIntervalSeconds: 5
  125. serviceUrl:
  126. defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:8500/eureka/
  127. management:
  128. endpoints:
  129. web:
  130. exposure:
  131. include: "*"
  132. endpoint:
  133. health:
  134. show-details: always
  135. shutdown:
  136. enabled: true
  137. restart:
  138. enabled: true
  139. feign:
  140. hystrix:
  141. enabled: true
  142. compression:
  143. request:
  144. enabled: true
  145. mime-types: text/xml,application/xml,application/json
  146. min-request-size: 2048
  147. response:
  148. enabled: true
  149. hystrix:
  150. command:
  151. default:
  152. execution:
  153. isolation:
  154. thread:
  155. timeoutInMilliseconds: 3000
  156. ribbon:
  157. eureka:
  158. enabled: true
  159. ReadTimeout: 60000
  160. ConnectTimeout: 60000
  161. MaxAutoRetries: 0
  162. MaxAutoRetriesNextServer: 1
  163. OkToRetryOnAllOperations: false
  164. info:
  165. name: '@project.artifactId@'
  166. description: '@project.description@'
  167. version: '@project.version@'
  168. spring-boot-version: '@spring.boot.version@'
  169. spring-cloud-version: '@spring.cloud.version@'
  170. auth:
  171. auth-header: Authorization
  172. public-key: auth/pub.key
  173. ignores:
  174. - /api/auth/authorize