43 lines
863 B
YAML
43 lines
863 B
YAML
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
application:
|
|
name: manage-gateway
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: manage-app
|
|
uri: http://manage-app:8081
|
|
predicates:
|
|
- Path=/api/**
|
|
default-filters:
|
|
- name: Retry
|
|
args:
|
|
retries: 3
|
|
statuses: BAD_GATEWAY,SERVICE_UNAVAILABLE
|
|
methods: GET,POST
|
|
backoff:
|
|
firstBackoff: 10ms
|
|
maxBackoff: 50ms
|
|
factor: 2
|
|
basedOnPreviousValue: false
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: health,info,metrics
|
|
base-path: /actuator
|
|
endpoint:
|
|
health:
|
|
show-details: always
|
|
metrics:
|
|
tags:
|
|
application: ${spring.application.name}
|
|
|
|
logging:
|
|
level:
|
|
cn.novalon.manage: DEBUG
|
|
org.springframework.cloud.gateway: DEBUG
|