application.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #端口号
  2. application:
  3. title: maxkey-gateway
  4. formatted-version: v3.1.1 GA
  5. server:
  6. port: 9000
  7. spring:
  8. application:
  9. name: taihu-gateway
  10. cloud:
  11. gateway:
  12. routes:
  13. #认证服务接口
  14. - id: taihu_router
  15. uri: lb://taihu-auth
  16. filters:
  17. - PrefixPath=/
  18. predicates:
  19. - Path=/taihu-auth/**
  20. - id: taihu-demo_router
  21. uri: lb://taihu-demo
  22. filters:
  23. - PrefixPath=/
  24. predicates:
  25. - Path=/taihu-demo/**
  26. # discovery:
  27. # locator:
  28. # enabled: true
  29. # lower-case-service-id: true
  30. # default-filters:
  31. # - name: Hystrix
  32. # args:
  33. # name: default
  34. # fallbackUri: 'forward:/defaultFallback'
  35. nacos:
  36. discovery:
  37. server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
  38. enabled: ${NACOS_DISCOVERY_ENABLED:true}
  39. config:
  40. # file-extension: yaml
  41. # server-addr: 127.0.0.1:8848
  42. username: ${NACOS_CONFIG_USERNAME:nacos}
  43. password: ${NACOS_CONFIG_PASSWORD:nacos}
  44. main:
  45. web-application-type: reactive
  46. #spring.main.web-application-type=reactive
  47. hystrix:
  48. command:
  49. default:
  50. execution:
  51. isolation:
  52. strategy: SEMAPHORE
  53. thread:
  54. #1分钟服务无响应则直接熔断
  55. timeoutInMilliseconds: 60000
  56. #JWT support
  57. maxkey.login.jwt: ${LOGIN_JWT:true}
  58. maxkey.login.jwt.issuer: ${LOGIN_JWT_ISSUER:maxkey}