blob: 35065a69db9c082fcae5f839daa0fb0ebf83ccce [file] [log] [blame]
server:
port: 5555
## logging
logging:
level:
root: INFO
org.springframework.web: INFO
org.springframework.cloud.gateway: TRACE
com.supwisdom.infras.security: DEBUG
com.supwisdom.leaveschool: DEBUG
spring:
application:
name: sample-gateway
cloud:
gateway:
routes:
- id: sample-user
uri: http://localhost:10010
order: 10010
predicates:
- Path=/api/sample-user/**
filters:
- RewritePath=/(?<prefix>.*)/sample-user/(?<suffix>.*), /$\{prefix}/$\{suffix}
- name: Hystrix
args:
name: default
fallbackUri: forward:/error
metrics:
enabled: true
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 5000
management.endpoints.web.exposure.include: '*'