application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 8000
  3. spring:
  4. application:
  5. name: gateway-web
  6. eureka:
  7. client:
  8. registry-fetch-interval-seconds: 5
  9. serviceUrl:
  10. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  11. instance:
  12. lease-renewal-interval-in-seconds: 5
  13. ribbon:
  14. eureka:
  15. enable: true
  16. ReadTimeout: 10000
  17. SocketTimeout: 3000
  18. ### 配置网关反向代理
  19. zuul:
  20. routes:
  21. api-auth:
  22. ### 以 /api-auth/访问转发到会员服务
  23. path: /api-auth/**
  24. serviceId: auth-server
  25. #url: http://localhost:8001/
  26. ##加上下面参数,可将header信息传递至下游
  27. #sensitiveHeaders:
  28. api-task:
  29. ### 以 /api-auth/访问转发到会员服务
  30. path: /api-task/**
  31. serviceId: task-server
  32. #url: http://localhost:8001/
  33. ##加上下面参数,可将header信息传递至下游
  34. #sensitiveHeaders:
  35. api-cms:
  36. ### 以 /api-auth/访问转发到会员服务
  37. path: /api-cms/**
  38. serviceId: cms-server
  39. #url: http://localhost:8001/
  40. ##加上下面参数,可将header信息传递至下游
  41. #sensitiveHeaders:
  42. api-web:
  43. path: /api-web/**
  44. serviceId: web-server
  45. api-teacher:
  46. path: /api-teacher/**
  47. serviceId: teacher-server
  48. api-student:
  49. path: /api-student/**
  50. serviceId: student-server
  51. api-education:
  52. path: /api-education/**
  53. serviceId: education-server
  54. #忽略某个微服务
  55. ignored-services: eureka-server
  56. #重试
  57. retryable: false
  58. #请求处理超时--只针对url的路由
  59. ReadTimeout: 60000
  60. #连接超时--只针对url的路由
  61. ConnectTimeout: 10000
  62. sensitiveHeaders:
  63. hystrix:
  64. command:
  65. default:
  66. execution:
  67. isolation:
  68. thread:
  69. timeoutInMilliseconds: 6000
  70. #spring boot admin 相关配置
  71. management:
  72. endpoints:
  73. web:
  74. exposure:
  75. include: "*"
  76. endpoint:
  77. health:
  78. show-details: ALWAYS