gateway.yml 8.39 KB
server:
  port: 15300

spring:
  profiles: development
  cloud:
    config:
      discovery:
        enabled: true

  redis:
    database: 0
    host: redis-server
    port: 6379
    password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    #sentinel:
      #master: mymaster1
      #nodes: redis-server:16379,redis-server:16379

  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    deserialization.accept_empty_string_as_null_object: true
      

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false



zuul:
  host:
    connect-timeout-millis: 500000
    socket-timeout-millis: 600000
  routes:
    users:
      path: /user-service/**
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      path: /class-service/**
      #url: http://class-service:16200
      serviceId: class-service
    cxcy:
      path: /cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    appCxcy:
      path: /app/cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    dingding:
      path: /dingding-service/**
      #url: http://user-service:16100
      serviceId: user-service
    order:
      path: /order/**
      #url: http://cxcy-service:16300
      serviceId: order-service
    cloud:
      path: /cloud-service/**
      serviceId: cloud-service
    training:
      path: /training-service/**
      serviceId: training-service
    cloudProduct:
      path: /cloud-product/**
      serviceId: cloud-product-service

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: false
        isolation:
          thread:
            timeoutInMilliseconds: 600000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 10000
  ConnectTimeout: 10000
  ServerListRefreshInterval: 5000


eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
    instance-id: ${spring.cloud.client.ipAddress}:${server.port}
    leaseRenewalIntervalInSeconds: 5
    leaseExpirationDurationInSeconds: 15
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/
    healthcheck:
      enabled: true
      

cas:
  encoding: UTF-8
  casServerUrlPrefix: http://cas/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token)|(/cloud-servic)

tenant:
  tenantId: 991

apiConfig:
  gxbApiUrl: http://gxb-api:8080/gxb-api
  jwtSecret: ENC(c35cdc68f5da4f7557c4551964af915da79cda2e6854d992121061a28d8d85766ac65a4ad753af36d770b7b9a6ebd2b3e59ecaaf2ed5eb3a4b4101fcf299419a)


---
server:
  port: 15300

spring:
  profiles: test
  cloud:
    config:
      discovery:
        enabled: true

  redis:
    database: 0
    host: redis-server
    port: 6379
    password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    #sentinel:
      #master: mymaster1
      #nodes: redis-server:16379,redis-server:16379

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false



zuul:
  routes:
    users:
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      #url: http://class-service:16200
      serviceId: class-service
    cxcy:
      path: /cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    appCxcy:
      path: /app/cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    order:
      path: /order/**
      #url: http://cxcy-service:16300
      serviceId: order-service
    training:
      path: /training-service/**
      serviceId: training-service
    cloudProduct:
      path: /cloud-product/**
      serviceId: cloud-product-service
hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 10000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 10000
  ConnectTimeout: 10000


eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/

cas:
  encoding: UTF-8
  casServerUrlPrefix: https://cas.gaoxiaobang.com/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token)

tenant:
  tenantId: 991

apiConfig:
  gxbApiUrl: http://gxb-api:8080/gxb-api
  jwtSecret: ENC(c35cdc68f5da4f7557c4551964af915da79cda2e6854d992121061a28d8d85766ac65a4ad753af36d770b7b9a6ebd2b3e59ecaaf2ed5eb3a4b4101fcf299419a)

---
server:
  port: 15300

spring:
  profiles: production
  cloud:
    config:
      discovery:
        enabled: true

  redis:
    database: 0
    host: gxb-app-20180706.redis.rds.aliyuncs.com
    port: 6379
    password: ENC(263159d39cfeec890c46a4a51f13906ed438bacccea9fce79961c0b0eceac428)
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    #sentinel:
      #master: mymaster1
      #nodes: redis1:16379,redis2:16379
      
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    deserialization.accept_empty_string_as_null_object: true
         

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false



zuul:
  routes:
    users:
      #url: http://user-service:16100
      serviceId: user-service
    classes:
      #url: http://class-service:16200
      serviceId: class-service
    cxcy:
      path: /cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    appCxcy:
      path: /app/cxcy/**
      #url: http://cxcy-service:16300
      serviceId: cxcy-service
    dingding:
      path: /dingding-service/**
      #url: http://user-service:16100
      serviceId: user-service
    order:
      path: /order/**
      #url: http://cxcy-service:16300
      serviceId: order-service
    training:
      path: /training-service/**
      serviceId: training-service
    cloudProduct:
      path: /cloud-product/**
      serviceId: cloud-product-service

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 10000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: true
  UseIPAddrForServer: true
  ReadTimeout: 10000
  ConnectTimeout: 10000
  

eureka:
  instance:
    hostname: gateway
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/
      
cas:
  encoding: UTF-8
  casServerUrlPrefix: http://cas/
  casServerLoginUrl: https://cas.gaoxiaobang.com/login
  casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
  ignorePattern: (^(/mvc/goto/)|(/order)|(/app/cxcy)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)|(/health)|(access_token)

tenant:
  tenantId: 991

apiConfig:
  gxbApiUrl: http://api/gxb-api
  jwtSecret: ENC(c35cdc68f5da4f7557c4551964af915da79cda2e6854d992121061a28d8d85766ac65a4ad753af36d770b7b9a6ebd2b3e59ecaaf2ed5eb3a4b4101fcf299419a)