# open-gateway **Repository Path**: liuyu2783/open-gateway ## Basic Information - **Project Name**: open-gateway - **Description**: 基于nacos配置中心的动态刷新spring cloud gateway - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: feature_config_center - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-12-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Getting Started ###nacos配置 ```yml spring: cloud: gateway: routes: - id: 'my-open' uri: 'lb://my-open' predicates: - Path=/api/open/** filters: - StripPrefix=2 - MyAuth=true - MyResponse=true - name: Hystrix args: name: myHystrix # name与下面的command的name一致 fallbackUri: forward:/fallback - id: 'my-open2' uri: 'lb://my-open' predicates: - Path=/api/open2/** filters: - StripPrefix=2 - MyAuth=true - MyResponse=true redis: password: l9T8tPnTP5julWHF_ sentinel: master: master5002 nodes: Redis哨兵配置 database: 1 timeout: 5000 jedis: pool: max-wait: 5500 max-idle: 8 max-active: 8 feign: httpclient: connection-timeout: 30000 hystrix: enabled: true ribbon: ReadTimeout: 40000 ConnectTimeout: 40000 hystrix: command: myHystrix: execution: isolation: thread: timeoutInMilliseconds: 60000 ```