application.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. sleuth:
  15. sampler:
  16. probability: 1.0
  17. cloud:
  18. gateway:
  19. discovery:
  20. locator:
  21. enabled: true
  22. routes:
  23. - id: ACCOUNT-SERVER
  24. uri: lb://ACCOUNT-SERVER
  25. predicates:
  26. - Path=/api/account/**
  27. filters:
  28. - RewritePath=/api/account/(?<segment>.*), /$\{segment}
  29. - id: SCHOOL-SERVER
  30. uri: lb://SCHOOL-SERVER
  31. predicates:
  32. - Path=/api/school/**
  33. filters:
  34. - RewritePath=/api/school/(?<segment>.*), /$\{segment}
  35. - id: WECHAT-SERVER
  36. uri: lb://WECHAT-SERVER
  37. predicates:
  38. - Path=/api/wechat/**
  39. filters:
  40. - RewritePath=/api/wechat/(?<segment>.*), /$\{segment}
  41. - id: SMS-SERVER
  42. uri: lb://SMS-SERVER
  43. predicates:
  44. - Path=/api/sms/**
  45. filters:
  46. - RewritePath=/api/sms/(?<segment>.*), /$\{segment}
  47. - id: FILE-SERVER
  48. uri: lb://FILE-SERVER
  49. predicates:
  50. - Path=/api/file/**
  51. filters:
  52. - RewritePath=/api/file/(?<segment>.*), /$\{segment}
  53. - id: AUTH-SERVER
  54. uri: lb://AUTH-SERVER
  55. predicates:
  56. - Path=/api/auth/**
  57. filters:
  58. - RewritePath=/api/auth/(?<segment>.*), /$\{segment}
  59. - id: DEVICE-SERVER
  60. uri: lb://DEVICE-SERVER
  61. predicates:
  62. - Path=/api/device/**
  63. filters:
  64. - RewritePath=/api/device/(?<segment>.*), /$\{segment}
  65. redis:
  66. host: 10.10.100.166
  67. port: 6379
  68. jackson:
  69. date-format: yyyy-MM-dd HH:mm:ss
  70. time-zone: GMT+8
  71. server:
  72. port: 9520
  73. tomcat:
  74. uri-encoding: UTF-8
  75. eureka:
  76. instance:
  77. leaseRenewalIntervalInSeconds: 10
  78. health-check-url-path: /actuator/health
  79. status-page-url-path: /actuator/info
  80. prefer-ip-address: true
  81. metadata-map:
  82. user.name: ${spring.security.user.name}
  83. user.password: ${spring.security.user.password}
  84. client:
  85. registryFetchIntervalSeconds: 5
  86. serviceUrl:
  87. defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:9500/eureka/
  88. management:
  89. endpoints:
  90. web:
  91. exposure:
  92. include: "*"
  93. endpoint:
  94. health:
  95. show-details: always
  96. shutdown:
  97. enabled: true
  98. restart:
  99. enabled: true
  100. feign:
  101. hystrix:
  102. enabled: true
  103. compression:
  104. request:
  105. enabled: true
  106. mime-types: text/xml,application/xml,application/json
  107. min-request-size: 2048
  108. response:
  109. enabled: true
  110. hystrix:
  111. command:
  112. default:
  113. execution:
  114. isolation:
  115. thread:
  116. timeoutInMilliseconds: 3000
  117. ribbon:
  118. eureka:
  119. enabled: true
  120. ReadTimeout: 60000
  121. ConnectTimeout: 60000
  122. MaxAutoRetries: 0
  123. MaxAutoRetriesNextServer: 1
  124. OkToRetryOnAllOperations: false
  125. info:
  126. name: '@project.artifactId@'
  127. description: '@project.description@'
  128. version: '@project.version@'
  129. spring-boot-version: '@spring.boot.version@'
  130. spring-cloud-version: '@spring.cloud.version@'
  131. auth:
  132. auth-header: Authorization
  133. public-key: auth/pub.key
  134. expire: 18000
  135. ignores:
  136. - /api/auth/authorize
  137. - /api/account/account/register
  138. - /api/school/wxSchool/user/bindOpenid*
  139. - /api/school/wxSchool/user/isBinding*
  140. - /api/school/wxSchool/user/sendCodeUpdate*
  141. - /api/school/wxSchool/user/sendCode*
  142. - /api/school/wxSchool/user/userLogin*
  143. - /api/school/wxSchool/user/sendCodeUpdate*
  144. - /api/school/wxSchool/meeting/getMeetingDetails*
  145. - /api/school/wxSchool/notify/getNotify*
  146. - /api/school/wxSchool/oaApprove/oaDetails*
  147. - /api/school/wxSchool/oaApprove/approve*
  148. - /api/school/wxSchool/stuScore/getScoreByStu*
  149. - /api/school/wxSchool/taskNotify/taskDetail*
  150. - /api/school/wxSchool/taskNotify/taskReply*
  151. - /api/school/wxSchool/outInRecord/inout/detail/*
  152. - /api/school/wxSchool/vote/voteDetailTeacher*
  153. - /api/school/wxSchool/vote/voteActionTeacher*
  154. - /api/school/wxSchool/vote/voteDetailStu*
  155. - /api/school/wxSchool/vote/voteActionParent*
  156. - /api/school/wxSchool/oaLeave/lvDetail**
  157. - /api/school/wxSchool/oaLeave/lvReply**
  158. - /api/device/**
  159. - /api/file/download*
  160. - /api/school/excel/**