blob: 6e5dfdfd3b011a7eb9242ce0275e0570c95a3473 [file] [log] [blame]
刘洪青f6b66112018-08-02 15:42:43 +08001server:
2 port: 5555
3
4## logging
5logging:
6 level:
7 root: INFO
8 org.springframework.web: INFO
刘洪青8d6ae1e2018-08-02 18:25:56 +08009 org.springframework.cloud.gateway: TRACE
刘洪青f6b66112018-08-02 15:42:43 +080010 com.supwisdom.infras.security: DEBUG
11 com.supwisdom.leaveschool: DEBUG
12
13spring:
14 application:
15 name: sample-gateway
16 cloud:
17 gateway:
18 routes:
19 - id: sample-user
20 uri: http://localhost:10010
21 order: 10010
22 predicates:
刘洪青3e9d7762018-08-03 18:28:55 +080023 - Path=/sample-user/**
刘洪青f6b66112018-08-02 15:42:43 +080024 filters:
刘洪青3e9d7762018-08-03 18:28:55 +080025 - AddRequestHeader=Authorization, Basic YWRtaW46cGFzc3dvcmQ=
26 #- RewritePath=/(?<prefix>.*)/sample-user/(?<suffix>.*), /$\{prefix}/$\{suffix}
27 - RewritePath=/sample-user/(?<suffix>.*), /$\{suffix}
刘洪青8d6ae1e2018-08-02 18:25:56 +080028 - name: Hystrix
29 args:
30 name: default
31 fallbackUri: forward:/error
32 metrics:
33 enabled: true
34
35hystrix:
36 command:
37 default:
38 execution:
39 timeout:
40 enabled: true
41 isolation:
42 thread:
刘洪青3e9d7762018-08-03 18:28:55 +080043 timeoutInMilliseconds: 10000
刘洪青f6b66112018-08-02 15:42:43 +080044
45management.endpoints.web.exposure.include: '*'