| 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=/sample-user/** |
| filters: |
| #- AddRequestHeader=Remote_User, admin |
| #- RewritePath=/(?<prefix>.*)/sample-user/(?<suffix>.*), /$\{prefix}/$\{suffix} |
| - RewritePath=/sample-user/(?<suffix>.*), /$\{suffix} |
| - name: Hystrix |
| args: |
| name: default |
| fallbackUri: forward:/error |
| metrics: |
| enabled: true |
| |
| hystrix: |
| command: |
| default: |
| execution: |
| timeout: |
| enabled: true |
| isolation: |
| thread: |
| timeoutInMilliseconds: 10000 |
| |
| management.endpoints.web.exposure.include: '*' |