代码语言:javascript复制
UPDATE `dqgs_system`.`user` SET `password` = '$2a$10$33FlpK2crYzJuD.erEOPxukihEwcjEQgcQtyDthO94MBcPSrfkicK' WHERE `id` = 1601042254743519234
代码语言:javascript复制server:
port: 8888
spring:
main:
allow-circular-references: true
application:
name: dqgs-gateway
security:
oauth2:
resourceserver:
jwt:
jwk-set-uri: http://dqgs-auth:8101/token/jwk
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true
routes:
- id: dqgs-portainer
uri: http://192.168.1.17:8001
predicates:
- Path=/dqgs/portainer/**
filters:
- StripPrefix=1
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-zipkin
uri: http://dqgs-zipkin:9411
predicates:
- Path=/zipkin/**
filters:
- StripPrefix=0
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-nacos
uri: http://dqgs-nacos:8848
predicates:
- Path=/dqgs/nacos/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-upload
uri: lb://dqgs-upload
predicates:
- Path=/dqgs/upload/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-gateway
uri: lb://dqgs-gateway
predicates:
- Path=/dqgs/gateway/**
filters:
- ResponseBody
- StripPrefix=2
- name: Hystrix
args:
name: gateway-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-auth
uri: lb://dqgs-auth
predicates:
- Path=/dqgs/auth/**
filters:
# - BodyEncrypt
- PasswordDecoder
- StripPrefix=2
- name: Hystrix
args:
name: need2-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-admin
uri: lb://dqgs-admin
predicates:
- Path=/dqgs/admin/**
filters:
- ValidateCode
- StripPrefix=2
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
key-resolver: "#{@apiKeyResolver}"
- id: wzlight-alarm
uri: lb://wzlight-alarm
predicates:
- Path=/wzlight/alarm/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: alarm-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: wzlight-display
uri: lb://wzlight-display
predicates:
- Path=/wzlight/display/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: need2-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-need
uri: lb://eisp-need
predicates:
- Path=/eisp/need/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: oauth-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-need2
uri: lb://eisp-need2
predicates:
- Path=/eisp/need2/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: oauth-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-vpp
uri: lb://eisp-vpp
predicates:
- Path=/eisp/vpp/**
filters:
- ValidateCode
- StripPrefix=2
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-vpp2
uri: lb://eisp-vpp2
predicates:
- Path=/eisp/vpp2/**
filters:
- ValidateCode
- StripPrefix=2
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eureka
uri: lb://dqgs-eureka
predicates:
- Path=/dqgs/eureka/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
# - PrefixPath=/eureka
- AddRequestHeader=Authorization, Basic ZHFnczpkcWdz
- name: Hystrix
args:
name: eureka-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eureka
uri: lb://dqgs-eureka
predicates:
- Path=/eureka/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
# - StripPrefix=1
# - PrefixPath=/eureka
- AddRequestHeader=Authorization, Basic ZHFnczpkcWdz
- name: Hystrix
args:
name: admin-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: hb-iess
uri: lb://hb-iess
predicates:
- Path=/hb/iess/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: hb-iess-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: hb-iess2
uri: lb://hb-iess2
predicates:
- Path=/hb/iess2/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 20
redis-rate-limiter.burstCapacity: 50
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: hb-iess-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ssr-sve
uri: lb://ssr-sve
predicates:
- Path=/ssr/sve/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: hb-iess-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-meta
uri: lb://eisp-meta
predicates:
- Path=/eisp/meta/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: hb-iess-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: hb-teach
uri: lb://hb-teach
predicates:
- Path=/hb/teach/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: hb-teach-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-cps
uri: lb://eisp-cps
predicates:
- Path=/eisp/cps/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: eisp-cps-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: doir-info
uri: lb://doir-info
predicates:
- Path=/doir/info/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: doir-info-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-alarm
uri: lb://ads-alarm
predicates:
- Path=/ads/alarm/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 50
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-alarm-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-point
uri: lb://ads-point
predicates:
- Path=/ads/point/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-point-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-ticket
uri: lb://ads-ticket
predicates:
- Path=/ads/ticket/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-ticket-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: test-info
uri: lb://doir-info
predicates:
- Path=/doir/info/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: doir-info-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-gis
uri: lb://zts-gis
predicates:
- Path=/zts/gis/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-gis-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-measure
uri: lb://zts-measure
predicates:
- Path=/zts/measure/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-measure-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-dms
uri: lb://zts-dms
predicates:
- Path=/zts/dms/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-dms-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-plus
uri: lb://zts-plus
predicates:
- Path=/zts/plus/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-plus-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-link
uri: lb://zts-link
predicates:
- Path=/zts/link/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-link-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: zts-gis2
uri: lb://zts-gis2
predicates:
- Path=/zts/gis2/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 30
redis-rate-limiter.burstCapacity: 60
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: zts-gis-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-arrange
uri: lb://dqgs-arrange
predicates:
- Path=/dqgs/arrange/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dqgs-arrange-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-metaycai
uri: lb://eisp-metaycai
predicates:
- Path=/eisp/metaycai/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: eisp-metaycai-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: sams-face
uri: lb://sams-face
predicates:
- Path=/sams/face/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: sams-face-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-arrange
uri: lb://dqgs-arrange
predicates:
- Path=/dqgs/arrange/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dqgs-arrange-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-project
uri: lb://dqgs-project
predicates:
- Path=/dqgs/project/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dqgs-project-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dqgs-flow
uri: lb://dqgs-flow
predicates:
- Path=/dqgs/flow/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dqgs-flow-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: sams-room
uri: lb://sams-room
predicates:
- Path=/sams/room/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: sams-room-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: sams-monitor
uri: lb://sams-monitor
predicates:
- Path=/sams/monitor/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: sams-monitor-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: server-monitor
uri: lb://server-monitor
predicates:
- Path=/server/monitor/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: server-monitor-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: prm-examine
uri: lb://prm-examine
predicates:
- Path=/prm/examine/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: prm-examine-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: eisp-gds
uri: lb://eisp-gds
predicates:
- Path=/eisp/gds/**
filters:
- StripPrefix=2
- name: Hystrix
args:
name: eisp-gds-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: cgc-compute
uri: lb://cgc-compute
predicates:
- Path=/cgc/compute/**
filters:
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: cgc-compute-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: bvm-monitor
uri: lb://bvm-monitor
predicates:
- Path=/bvm/monitor/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: bvm-monitor-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dct-digitization
uri: lb://dct-digitization
predicates:
- Path=/dct/digitization/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dct-digitization-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: cws-material
uri: lb://cws-material
predicates:
- Path=/cws/material/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: cws-material-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: cic-collection
uri: lb://cic-collection
predicates:
- Path=/cic/collection/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: cic-collection-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: icdc-icd
uri: lb://icdc-icd
predicates:
- Path=/icdc/icd/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: yndr-icdc-icd
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ivm-recognition
uri: lb://ivm-recognition
predicates:
- Path=/ivm/recognition/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ivm-recognition-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: pps-manage
uri: lb://pps-manage
predicates:
- Path=/pps/manage/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: pps-manage-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: yndr-predict
uri: lb://yndr-predict
predicates:
- Path=/yndr/predict/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: yndr-predict-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: utp-monitor
uri: lb://utp-monitor
predicates:
- Path=/utp/monitor/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: utp-monitor-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-equipment
uri: lb://ads-equipment
predicates:
- Path=/ads/equipment/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 50
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-equipment-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-iam
uri: lb://ads-iam
predicates:
- Path=/ads/iam/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 50
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-iam-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: ads-zds
uri: lb://ads-zds
predicates:
- Path=/ads/zds/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 50
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: ads-equipment-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
- id: dnhs-manage
uri: lb://dnhs-manage
predicates:
- Path=/dnhs/manage/**
filters:
#StripPrefix代表截取路径的个数这样配置后当请求/name/bar/foo后端匹配到的请求路径就会变成http://nameservice/foo
#PrefixPath:是在 URL 路径前面添加一部分的前缀
- StripPrefix=2
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 50
redis-rate-limiter.burstCapacity: 100
key-resolver: "#{@apiKeyResolver}"
- name: Hystrix
args:
name: dnhs-manage-hystrix
fallbackUri: forward:/common/fallback #设置熔断器
retries: 3
statuses: BAD_GATEWAY
eureka:
instance:
lease-renewal-interval-in-seconds: 7
lease-expiration-duration-in-seconds: 10
client:
healthcheck.enabled: true
allowed:
origin: '*'
method: '*'
expose_header: 'Host,Token,data-type'
cache_control:
path: /dqgs/admin/authClientInfo/loginBg
# 校验referer 只校验 host
# referer: "eureka,jiang.com"
checkCode: password
management:
endpoints:
enabled-by-default: false
ignore:
gateway:
urls: /*/*/loginThird,/dqgs/admin/user/sign,/dqgs/auth/token/jwk,/**/**/code,/**/**/oauth/token,/dqgs/admin/authClientInfo/*,/dqgs/gateway/doc.html,/dqgs/gateway/webjars/**,/dqgs/gateway/swagger-resources/**,/dqgs/gateway/**/**/v2/api-docs,/ivm/videoProcess/camera/**,/ivm/videoProcess/workFile/video,/ivm/videoProcess/workFile/photo,/eisp/need/login,/zts/link/login,/dqgs/auth/token/jwk,/ads/zds/wes/**,/eisp/need/company/name/numbe*,/123,/dqgs/admin/user/id/*,/sams/room/login,/bvm/monitor/ws/**,/dqgs/upload/file/preview/temporary*
swagger:
deny:
route: dqgs-portainer