application.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. ############################################################################
  47. #redis server configuration #
  48. ############################################################################
  49. redis:
  50. host: ${REDIS_HOST:61.132.52.38}
  51. port: ${REDIS_PORT:20003}
  52. password: ${REDIS_PWD:}
  53. timeout: 10000
  54. jedis:
  55. pool:
  56. max-wait: 1000
  57. max-idle: 200
  58. max-active: -1
  59. min-idle: 0
  60. hystrix:
  61. command:
  62. default:
  63. execution:
  64. isolation:
  65. strategy: SEMAPHORE
  66. thread:
  67. #1分钟服务无响应则直接熔断
  68. timeoutInMilliseconds: 60000
  69. #JWT support
  70. maxkey.login.jwt: ${LOGIN_JWT:true}
  71. maxkey.login.jwt.issuer: ${LOGIN_JWT_ISSUER:maxkey}