#端口号 application: title: maxkey-gateway formatted-version: v3.1.1 GA server: port: 9000 spring: application: name: taihu-gateway cloud: gateway: routes: #认证服务接口 - id: taihu_router uri: lb://taihu-auth filters: - PrefixPath=/ predicates: - Path=/taihu-auth/** - id: taihu-demo_router uri: lb://taihu-demo filters: - PrefixPath=/ predicates: - Path=/taihu-demo/** # discovery: # locator: # enabled: true # lower-case-service-id: true # default-filters: # - name: Hystrix # args: # name: default # fallbackUri: 'forward:/defaultFallback' nacos: discovery: server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848} enabled: ${NACOS_DISCOVERY_ENABLED:true} config: # file-extension: yaml # server-addr: 127.0.0.1:8848 username: ${NACOS_CONFIG_USERNAME:nacos} password: ${NACOS_CONFIG_PASSWORD:nacos} main: web-application-type: reactive ############################################################################ #redis server configuration # ############################################################################ redis: host: ${REDIS_HOST:61.132.52.38} port: ${REDIS_PORT:20003} password: ${REDIS_PWD:} timeout: 10000 jedis: pool: max-wait: 1000 max-idle: 200 max-active: -1 min-idle: 0 hystrix: command: default: execution: isolation: strategy: SEMAPHORE thread: #1分钟服务无响应则直接熔断 timeoutInMilliseconds: 60000 #JWT support maxkey.login.jwt: ${LOGIN_JWT:true} maxkey.login.jwt.issuer: ${LOGIN_JWT_ISSUER:maxkey}