huanghongfa
2020-12-20 1f0316d9a1cb56667bbe777f49e5c9f81a3a5acd
网关服务本地配置
1个文件已添加
55 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/config-repo/zuul-dev.yml 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/config-repo/zuul-dev.yml
New file
@@ -0,0 +1,55 @@
server:
  port: 8194
spring:
  application:
    name: zuul
  # redis 配置
  redis:
    # 地址
    host: localhost
    # 端口,默认为6379
    port: 6379
    # 密码
    password:
    # 连接超时时间
    timeout: 10s
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 0
        # 连接池中的最大空闲连接
        max-idle: 8
        # 连接池的最大数据库连接数
        max-active: 8
        # #连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1ms
zuul:
  prefix: /api
  routes:
    appletsbackstage:
      path: /api/appletsbackstage/**
      serviceId: appletsbackstage
    applets:
      path: /api/applets/**
      serviceId: applets
    communitybackstage:
      path: /api/communitybackstage/**
      serviceId: communitybackstage
ribbon:
  ConnectTimeout: 60000
  ReadTimeout: 60000
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 60000
eureka:
  client:
    service-url:
      defaultZone: http://localhost:8192/eureka/