application.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. - id: SOCKET-SERVER
  108. uri: lb:ws://SOCKET-SERVER
  109. predicates:
  110. - Path=/ws/**
  111. redis:
  112. host: 192.168.253.12
  113. port: 6379
  114. jackson:
  115. date-format: yyyy-MM-dd HH:mm:ss
  116. time-zone: GMT+8
  117. server:
  118. port: 8560
  119. tomcat:
  120. uri-encoding: UTF-8
  121. eureka:
  122. instance:
  123. leaseRenewalIntervalInSeconds: 10
  124. health-check-url-path: /actuator/health
  125. status-page-url-path: /actuator/info
  126. prefer-ip-address: true
  127. metadata-map:
  128. user.name: ${spring.security.user.name}
  129. user.password: ${spring.security.user.password}
  130. client:
  131. registryFetchIntervalSeconds: 5
  132. serviceUrl:
  133. defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:8500/eureka/
  134. management:
  135. endpoints:
  136. web:
  137. exposure:
  138. include: "*"
  139. endpoint:
  140. health:
  141. show-details: always
  142. shutdown:
  143. enabled: true
  144. restart:
  145. enabled: true
  146. feign:
  147. hystrix:
  148. enabled: true
  149. compression:
  150. request:
  151. enabled: true
  152. mime-types: text/xml,application/xml,application/json
  153. min-request-size: 2048
  154. response:
  155. enabled: true
  156. hystrix:
  157. command:
  158. default:
  159. execution:
  160. isolation:
  161. thread:
  162. timeoutInMilliseconds: 3000
  163. ribbon:
  164. eureka:
  165. enabled: true
  166. ReadTimeout: 60000
  167. ConnectTimeout: 60000
  168. MaxAutoRetries: 0
  169. MaxAutoRetriesNextServer: 1
  170. OkToRetryOnAllOperations: false
  171. info:
  172. name: '@project.artifactId@'
  173. description: '@project.description@'
  174. version: '@project.version@'
  175. spring-boot-version: '@spring.boot.version@'
  176. spring-cloud-version: '@spring.cloud.version@'
  177. auth:
  178. auth-header: Authorization
  179. public-key: auth/pub.key
  180. ignores:
  181. - /api/auth/authorize
  182. - /api/auth/sso/callback
  183. - /api/account/account/register
  184. - /api/auth/info
  185. - /ws/**