application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. feign:
  128. hystrix:
  129. enabled: true
  130. compression:
  131. request:
  132. enabled: true
  133. mime-types: text/xml,application/xml,application/json
  134. min-request-size: 2048
  135. response:
  136. enabled: true
  137. hystrix:
  138. command:
  139. default:
  140. execution:
  141. isolation:
  142. thread:
  143. timeoutInMilliseconds: 3000
  144. ribbon:
  145. eureka:
  146. enabled: true
  147. ReadTimeout: 60000
  148. ConnectTimeout: 60000
  149. MaxAutoRetries: 0
  150. MaxAutoRetriesNextServer: 1
  151. OkToRetryOnAllOperations: false
  152. info:
  153. name: '@project.artifactId@'
  154. description: '@project.description@'
  155. version: '@project.version@'
  156. spring-boot-version: '@spring.boot.version@'
  157. spring-cloud-version: '@spring.cloud.version@'
  158. auth:
  159. auth-header: Authorization
  160. public-key: auth/pub.key
  161. ignores:
  162. - /api/auth/authorize