application.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #端口号
  2. application:
  3. name: maxkey-gateway-server
  4. formatted-version: v3.5.0 GA
  5. server:
  6. port: 9000
  7. spring:
  8. application:
  9. name: maxkey-gateway-server
  10. cloud:
  11. gateway:
  12. routes:
  13. #nacos健康检查端口8080
  14. - id: maxkeys_route
  15. uri: lb://maxkey
  16. filters:
  17. - PrefixPath=/
  18. predicates:
  19. - Path=/maxkey/**
  20. - id: maxkey_mgts_route
  21. uri: lb://maxkey-mgt
  22. filters:
  23. - PrefixPath=/
  24. predicates:
  25. - Path=/maxkey-mgt/**
  26. # default-filters:
  27. # - name: Hystrix
  28. # args:
  29. # name: default
  30. # fallbackUri: 'forward:/defaultFallback'
  31. nacos:
  32. discovery:
  33. server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
  34. enabled: ${NACOS_DISCOVERY_ENABLED:false}
  35. config:
  36. # file-extension: yaml
  37. # server-addr: 127.0.0.1:8848
  38. username: ${NACOS_CONFIG_USERNAME:nacos}
  39. password: ${NACOS_CONFIG_PASSWORD:nacos}
  40. main:
  41. web-application-type: reactive
  42. #spring.main.web-application-type=reactive
  43. hystrix:
  44. command:
  45. default:
  46. execution:
  47. isolation:
  48. strategy: SEMAPHORE
  49. thread:
  50. #1分钟服务无响应则直接熔断
  51. timeoutInMilliseconds: 60000